toArray method of Point