HE_Mesh  5.1.0
geomerative.RPoint Class Reference

Public Member Functions

 RPoint (final double x, final double y)
 
void rotateAboutOriginSelf (final float angle)
 

Related Functions

(Note that these are not member functions.)

float x
 
float y
 
 RPoint (final float x, final float y)
 
 RPoint ()
 
 RPoint (final RPoint p)
 
void transform (final RMatrix m)
 
void translateSelf (final float tx, final float ty)
 
void translateSelf (final RPoint t)
 
void rotateAroundPointSelf (final float angle, final float vx, final float vy)
 
void rotate (final float angle, final RPoint v)
 
void scaleSelf (final float sx, final float sy)
 
void scaleSelf (final float s)
 
void scaleSelf (final RPoint s)
 
void normalizeSelf ()
 
void subSelf (final RPoint p)
 
void addSelf (final RPoint p)
 
float dot (final RPoint p)
 
RPoint cross (final RPoint p)
 
float getLength2D ()
 
float getSqLength2D ()
 
float getAngleBetween (final RPoint p)
 
float getDistance2D (final RPoint p)
 

Detailed Description

RPoint is a very simple interface for creating, holding and drawing 2D points.

RPoint Geometry

Constructor & Destructor Documentation

geomerative.RPoint.RPoint ( final double  x,
final double  y 
)

Member Function Documentation

void geomerative.RPoint.rotateAboutOriginSelf ( final float  angle)

Friends And Related Function Documentation

void addSelf ( final RPoint  p)
related

Use this to add a vector to this point.

RPoint_add Geometry

Parameters
pthe vector to add ( ) ( ) ( )
RPoint cross ( final RPoint  p)
related

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.

RPoint_cross Geometry

Parameters
pthe vector to perform the cross product with
Returns
RPoint, the resulting vector of the cross product ( ) ( ) ( )
float dot ( final RPoint  p)
related

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

RPoint_mult Geometry

Parameters
pthe vector to multiply
Returns
float, the result of the scalar product ( ) ( ) ( )
float getAngleBetween ( final RPoint  p)
related

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

RPoint_angle Geometry

Parameters
pthe vector relative to which we want to evaluate the angle
Returns
float, the angle between the two vectors ( )
float getDistance2D ( final RPoint  p)
related

Use this to obtain the distance between the vector and another vector

RPoint_dist Geometry

Parameters
pthe vector relative to which we want to evaluate the distance
Returns
float, the distance between the two vectors ( )
float getLength2D ( )
related

Use this to obtain the norm of the point.

RPoint_norm Geometry

Returns
float, the norm of the point ( )
float getSqLength2D ( )
related

Use this to obtain the square norm of the point.

RPoint_norm Geometry

Returns
float, the norm of the point ( )
void normalizeSelf ( )
related

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

RPoint_normalize Geometry ( ) ( ) ( ) ( )

void rotate ( final float  angle,
final RPoint  v 
)
related

Apply a rotation to the point, given the angle and optionally the point of the center of rotation.

RPoint_rotate Geometry

Parameters
anglethe angle of rotation to be applied
vthe position vector of the center of rotation ( ) ( ) ( )
void rotateAroundPointSelf ( final float  angle,
final float  vx,
final float  vy 
)
related

Apply a rotation to the point, given the angle and optionally the coordinates of the center of rotation.

RPoint_rotate Geometry

Parameters
anglethe angle of rotation to be applied
vxthe x coordinate of the center of rotation
vythe y coordinate of the center of rotation ( ) ( ) ( )
RPoint ( final float  x,
final float  y 
)
related

Create a new point, given the coordinates.

RPoint_constructor Geometry

Parameters
xthe x coordinate of the new point
ythe y coordinate of the new point
RPoint ( )
related

Create a new point at (0, 0).

RPoint_constructor Geometry

RPoint ( final RPoint  p)
related

Copy a point.

RPoint_constructor Geometry

Parameters
pthe point we wish to make a copy of
void scaleSelf ( final float  sx,
final float  sy 
)
related

Apply a scaling to the point, given the scaling factors.

RPoint_scale Geometry

Parameters
sxthe scaling coefficient over the x axis
sythe scaling coefficient over the y axis ( ) ( ) ( )
void scaleSelf ( final float  s)
related

Apply a scaling to the point, given a scaling factor.

RPoint_scale Geometry

Parameters
sthe scaling coefficient for a uniform scaling ( ) ( ) ( )
void scaleSelf ( final RPoint  s)
related

Apply a scaling to the point, given a scaling vector.

RPoint_scale Geometry

Parameters
sthe scaling vector ( ) ( ) ( )
void subSelf ( final RPoint  p)
related

Use this to subtract a vector from this point.

RPoint_sub Geometry

Parameters
pthe vector to substract ( ) ( ) ( )
void transform ( final RMatrix  m)
related

Use this to apply a transformation to the point.

RPoint_transform Geometry

Parameters
mthe transformation matrix to be applied ( ) ( ) ( )
void translateSelf ( final float  tx,
final float  ty 
)
related

Apply a translation to the point.

RPoint_translate Geometry

Parameters
txthe coefficient of x translation
tythe coefficient of y translation ( ) ( ) ( )
void translateSelf ( final RPoint  t)
related

Apply a translation to the point.

RPoint_translate Geometry

Parameters
tthe translation vector to be applied ( ) ( ) ( )
float x
related

The x coordinate of the point.

RPoint_x Geometry

float y
related

The y coordinate of the point.

RPoint_y Geometry


The documentation for this class was generated from the following file: