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::GeVec2f Struct Reference

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

Public Member Functions

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

Public Attributes

float x
 X coordinate. More...
 
float y
 Y coordinate. More...
 

Properties

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

Detailed Description

A two dimensional float vector or point.

Constructor & Destructor Documentation

X3g::Plugin::GeVec2f::GeVec2f ( float  x,
float  y 
)

Constructor.

Member Function Documentation

bool X3g::Plugin::GeVec2f::IsSame ( GeVec2f  other,
float  tol 
)

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

GeVec2f X3g::Plugin::GeVec2f::Normalized ( )

Returns a new vector with normalized length.

GeVec2d X3g::Plugin::GeVec2f::ToVec2d ( )

Converts this vector to GeVec2d.

Member Data Documentation

float X3g::Plugin::GeVec2f::x

X coordinate.

float X3g::Plugin::GeVec2f::y

Y coordinate.

Property Documentation

float X3g::Plugin::GeVec2f::Length
get

Returns the length of the vector.

float X3g::Plugin::GeVec2f::Length2
get

Returns the squared length of the vector.