Value > Basic Data Values > Point2 Values |
The point2 class defines the characteristics of points in 2D space.
This class is a 2D version of Point3 and is used in utility rollout positioning parameters and for accessing Bitmap values, etc.
See also 2D and 3D Point Literals.
point2 <x> <y>-- x and y are numbers <point3> as point2-- created from the x and y components of the point3
<point2> == <point2> <point2> != <point2> <point2> + <point2_or_number> <point2> - <point2_or_number> <point2> * <point2_or_number> <point2> / <point2_or_number>
Standard vector arithmetic. If the second operand is a number it does scalar arithmetic on vector.
Returns a component of the Point2 as a float. Valid range on the index is 1 to 2.
Sets a component of the Point2 to the float. Valid range on the index is 1 to 2.
Creates a new copy of the point2 value.
The new value contains a copy of the input point2 value, and is independent of the input point2 value.
Generates a pseudo-random point between the given points.
Returns the length of the vector.
Returns the distance between the points - length of (point 2 - point 1).
Returns the point2 value normalized such that the vector length equals 1.