Next: , Previous: , Up: Point   [Index]


1.132.6 Point: point functions

arcTan

Answer the angle (measured counterclockwise) between the receiver and a ray starting in (0, 0) and moving towards (1, 0) - i.e. 3 o’clock

dist: aPoint

Answer the distance between the receiver and aPoint

dotProduct: aPoint

Answer the dot product between the receiver and aPoint

grid: aPoint

Answer a new point whose coordinates are rounded towards the nearest multiple of aPoint

normal

Rotate the Point 90degrees clockwise and get the unit vector

transpose

Answer a new point whose coordinates are the receiver’s coordinates exchanged (x becomes y, y becomes x)

truncatedGrid: aPoint

Answer a new point whose coordinates are rounded towards -infinity, to a multiple of grid (which must be a Point)