pCon.planner Plugin SDK  Version 8.8.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Properties | List of all members
X3g::Plugin::GeVec2d Struct Reference

A two dimensional float vector or point. More...

Public Member Functions

 GeVec2d (double x, double y)
 Constructor. More...
 
GeVec2d Normalized ()
 Returns a new vector with normalized length. More...
 
bool IsSame (GeVec2d other, double tol)
 Returns true if this vector equals another vector using a tolerance. More...
 
GeVec2f ToVec2f ()
 Converts this vector to GeVec2f. More...
 

Public Attributes

double x
 X coordinate. More...
 
double y
 Y coordinate. More...
 

Properties

double Length [get]
 Returns the length of the vector. More...
 
double Length2 [get]
 Returns the squared length of the vector. More...
 

Detailed Description

A two dimensional float vector or point.

Constructor & Destructor Documentation

X3g::Plugin::GeVec2d::GeVec2d ( double  x,
double  y 
)

Constructor.

Member Function Documentation

bool X3g::Plugin::GeVec2d::IsSame ( GeVec2d  other,
double  tol 
)

Returns true if this vector equals another vector using a tolerance.

GeVec2d X3g::Plugin::GeVec2d::Normalized ( )

Returns a new vector with normalized length.

GeVec2f X3g::Plugin::GeVec2d::ToVec2f ( )

Converts this vector to GeVec2f.

Member Data Documentation

double X3g::Plugin::GeVec2d::x

X coordinate.

double X3g::Plugin::GeVec2d::y

Y coordinate.

Property Documentation

double X3g::Plugin::GeVec2d::Length
get

Returns the length of the vector.

double X3g::Plugin::GeVec2d::Length2
get

Returns the squared length of the vector.