geomerative index
Name RPoint
Examples
None available
Description RPoint is a very simple interface for creating, holding and drawing 2D points.
Constructors
RPoint();
RPoint(x, y);
RPoint(p);
Parameters
x   float, the x coordinate of the new point
y   float, the y coordinate of the new point
p   RPoint, the point we wish to make a copy of
Fields
x   The x coordinate of the point.

y   The y coordinate of the point.

Methods
add ( )   Use this to add a vector to this point.

angle ( )   Use this to obtain the angle between the vector and another vector

cross ( )   Use this to perform a cross product of the point with another point. This returns a RPoint corresponding to the cross product of both vectors.

mult ( )   Use this to multiply a vector to this point. This returns a float corresponding to the scalar product of both vectors.

norm ( )   Use this to obtain the norm of the point.

normalize ( )   Use this to normalize the point. This means that after applying, it's norm will be equal to 1.

rotate ( )   Use this to apply a rotation to the point.

scale ( )   Use this to scale the point.

sub ( )   Use this to substract a vector to this point.

transform ( )   Use this to apply a transformation to the point.

translate ( )   Use this to apply a translation to the point.

Usage Geometry
Related x
y