MAK Legion 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::Vector4d Class Reference
+ Collaboration diagram for Legion::Vector4d:

Public Member Functions

 Vector4d ()
 
 Vector4d (double x, double y, double z, double w)
 
 Vector4d (const double *tuple)
 
 Vector4d (const Vector4d &other)
 
 Vector4d (const Vector4f &other)
 
Vector4doperator= (const Vector4d &vec)
 
bool operator== (const Vector4d &vec) const
 
bool operator!= (const Vector4d &vec) const
 
bool operator< (const Vector4d &vec) const
 
bool operator<= (const Vector4d &vec) const
 
bool operator> (const Vector4d &vec) const
 
bool operator>= (const Vector4d &vec) const
 
Vector4d operator+ (const Vector4d &vec) const
 
Vector4d operator- (const Vector4d &vec) const
 
Vector4d operator* (double scalar) const
 
Vector4d operator/ (double scalar) const
 
Vector4d operator- () const
 
Vector4doperator+= (const Vector4d &vec)
 
Vector4doperator-= (const Vector4d &vec)
 
Vector4doperator*= (double scalar)
 
Vector4doperator/= (double scalar)
 
double length () const
 
double lengthSquared () const
 
double normalize ()
 
double distanceFrom (const Vector4d &vec) const
 
double distanceFromSquared (const Vector4d &vec) const
 
void setLength (double newLength)
 
void invert ()
 
bool isZero ()
 
bool isBetweenPoints (const Vector4d &begin, const Vector4d &end) const
 Returns if this vector interpreted as a point is on a line between two other points. More...
 

Static Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

Legion::Vector4d::Vector4d ( )
Legion::Vector4d::Vector4d ( double  x,
double  y,
double  z,
double  w 
)
Legion::Vector4d::Vector4d ( const double *  tuple)
Legion::Vector4d::Vector4d ( const Vector4d other)
Legion::Vector4d::Vector4d ( const Vector4f other)

Member Function Documentation

double Legion::Vector4d::distanceFrom ( const Vector4d vec) const
inline
double Legion::Vector4d::distanceFromSquared ( const Vector4d vec) const
inline
static Vector4d Legion::Vector4d::interpolate ( const Vector4d v0,
const Vector4d v1,
double  t 
)
static

returns interpolated vector

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

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::Vector4d::isZero ( )
inline
double Legion::Vector4d::length ( ) const
inline
double Legion::Vector4d::lengthSquared ( ) const
inline
double Legion::Vector4d::normalize ( )
inline
bool Legion::Vector4d::operator!= ( const Vector4d vec) const
inline
Vector4d Legion::Vector4d::operator* ( double  scalar) const
inline
Vector4d& Legion::Vector4d::operator*= ( double  scalar)
inline
Vector4d Legion::Vector4d::operator+ ( const Vector4d vec) const
inline
Vector4d& Legion::Vector4d::operator+= ( const Vector4d vec)
inline
Vector4d Legion::Vector4d::operator- ( const Vector4d vec) const
inline
Vector4d Legion::Vector4d::operator- ( ) const
inline
Vector4d& Legion::Vector4d::operator-= ( const Vector4d vec)
inline
Vector4d Legion::Vector4d::operator/ ( double  scalar) const
inline
Vector4d& Legion::Vector4d::operator/= ( double  scalar)
inline
bool Legion::Vector4d::operator< ( const Vector4d vec) const
inline
bool Legion::Vector4d::operator<= ( const Vector4d vec) const
inline
Vector4d& Legion::Vector4d::operator= ( const Vector4d vec)
inline
bool Legion::Vector4d::operator== ( const Vector4d vec) const
inline
bool Legion::Vector4d::operator> ( const Vector4d vec) const
inline
bool Legion::Vector4d::operator>= ( const Vector4d vec) const
inline
void Legion::Vector4d::setLength ( double  newLength)
inline

Member Data Documentation

union { ... }
double Legion::Vector4d::data[4]
double Legion::Vector4d::w
double Legion::Vector4d::x
double Legion::Vector4d::y
double Legion::Vector4d::z

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

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)