MAK Legion 1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Legion::Vector3d Class Reference
+ Collaboration diagram for Legion::Vector3d:

Public Member Functions

 Vector3d ()
 
 Vector3d (double x, double y, double z)
 
 Vector3d (const double *tuple)
 
 Vector3d (const Vector3d &other)
 
 Vector3d (const Vector3f &other)
 
Vector3doperator= (const Vector3d &vec)
 
bool operator== (const Vector3d &vec) const
 
bool operator!= (const Vector3d &vec) const
 
bool operator< (const Vector3d &vec) const
 
bool operator<= (const Vector3d &vec) const
 
bool operator> (const Vector3d &vec) const
 
bool operator>= (const Vector3d &vec) const
 
Vector3d operator+ (const Vector3d &vec) const
 
Vector3d operator- (const Vector3d &vec) const
 
Vector3d operator* (double scalar) const
 
Vector3d operator/ (double scalar) const
 
Vector3d operator- () const
 
Vector3doperator+= (const Vector3d &vec)
 
Vector3doperator-= (const Vector3d &vec)
 
Vector3doperator*= (double scalar)
 
Vector3doperator/= (double scalar)
 
double length () const
 
double lengthSquared () const
 
double dot (const Vector3d &vec) const
 
Vector3d cross (const Vector3d &vec) const
 
Vector3d unitCross (const Vector3d &vec) const
 
double normalize ()
 
double distanceFrom (const Vector3d &vec) const
 
double distanceFromSquared (const Vector3d &vec) const
 
void setLength (double newLength)
 
void invert ()
 
bool isZero ()
 
double angleBetween (const Vector3d &v) const
 Calculates the angle between this vector and another one in grad. More...
 
bool isBetweenPoints (const Vector3d &begin, const Vector3d &end) const
 Returns if this vector interpreted as a point is on a line between two other points. More...
 

Static Public Member Functions

static Vector3d interpolate (const Vector3d &v0, const Vector3d &v1, double t)
 returns interpolated vector More...
 

Public Attributes

union {
   struct {
      double   x
 
      double   y
 
      double   z
 
   } 
 
   double   data [3]
 
}; 
 

Constructor & Destructor Documentation

Legion::Vector3d::Vector3d ( )
Legion::Vector3d::Vector3d ( double  x,
double  y,
double  z 
)
Legion::Vector3d::Vector3d ( const double *  tuple)
Legion::Vector3d::Vector3d ( const Vector3d other)
Legion::Vector3d::Vector3d ( const Vector3f other)

Member Function Documentation

double Legion::Vector3d::angleBetween ( const Vector3d v) const

Calculates the angle between this vector and another one in grad.

Vector3d Legion::Vector3d::cross ( const Vector3d vec) const
double Legion::Vector3d::distanceFrom ( const Vector3d vec) const
double Legion::Vector3d::distanceFromSquared ( const Vector3d vec) const
double Legion::Vector3d::dot ( const Vector3d vec) const
static Vector3d Legion::Vector3d::interpolate ( const Vector3d v0,
const Vector3d v1,
double  t 
)
static

returns interpolated vector

Parameters
other,:other vector to interpolate between
d,:value between 0.0f and 1.0f.
void Legion::Vector3d::invert ( )
bool Legion::Vector3d::isBetweenPoints ( const Vector3d begin,
const Vector3d end 
) const

Returns if this vector interpreted as a point is on a line between two other points.

It is assumed that the point is on the line.

Parameters
begin,:Beginning vector to compare between.
end,:Ending vector to compare between.
Returns
True if this vector is between begin and end. False if not.
bool Legion::Vector3d::isZero ( )
double Legion::Vector3d::length ( ) const
double Legion::Vector3d::lengthSquared ( ) const
double Legion::Vector3d::normalize ( )
bool Legion::Vector3d::operator!= ( const Vector3d vec) const
Vector3d Legion::Vector3d::operator* ( double  scalar) const
Vector3d& Legion::Vector3d::operator*= ( double  scalar)
Vector3d Legion::Vector3d::operator+ ( const Vector3d vec) const
Vector3d& Legion::Vector3d::operator+= ( const Vector3d vec)
Vector3d Legion::Vector3d::operator- ( const Vector3d vec) const
Vector3d Legion::Vector3d::operator- ( ) const
Vector3d& Legion::Vector3d::operator-= ( const Vector3d vec)
Vector3d Legion::Vector3d::operator/ ( double  scalar) const
Vector3d& Legion::Vector3d::operator/= ( double  scalar)
bool Legion::Vector3d::operator< ( const Vector3d vec) const
bool Legion::Vector3d::operator<= ( const Vector3d vec) const
Vector3d& Legion::Vector3d::operator= ( const Vector3d vec)
bool Legion::Vector3d::operator== ( const Vector3d vec) const
bool Legion::Vector3d::operator> ( const Vector3d vec) const
bool Legion::Vector3d::operator>= ( const Vector3d vec) const
void Legion::Vector3d::setLength ( double  newLength)
Vector3d Legion::Vector3d::unitCross ( const Vector3d vec) const

Member Data Documentation

union { ... }
double Legion::Vector3d::data[3]
double Legion::Vector3d::x

Referenced by main(), sosSignalCb(), and vecToOrientation().

double Legion::Vector3d::y

Referenced by main(), sosSignalCb(), and vecToOrientation().

double Legion::Vector3d::z

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

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)