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

Public Member Functions

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

Static Public Member Functions

static Vector4f interpolate (const Vector4f &v0, const Vector4f &v1, float t)
 returns interpolated vector More...
 

Public Attributes

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

Constructor & Destructor Documentation

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

Member Function Documentation

float Legion::Vector4f::distanceFrom ( const Vector4f vec) const
inline
float Legion::Vector4f::distanceFromSquared ( const Vector4f vec) const
inline
static Vector4f Legion::Vector4f::interpolate ( const Vector4f v0,
const Vector4f v1,
float  t 
)
static

returns interpolated vector

Parameters
other,:other vector to interpolate between
d,:value between 0.0f and 1.0f.
void Legion::Vector4f::invert ( )
inline
bool Legion::Vector4f::isBetweenPoints ( const Vector4f begin,
const Vector4f 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::Vector4f::isZero ( )
inline
float Legion::Vector4f::length ( ) const
inline
float Legion::Vector4f::lengthSquared ( ) const
inline
float Legion::Vector4f::normalize ( )
inline
bool Legion::Vector4f::operator!= ( const Vector4f vec) const
inline
Vector4f Legion::Vector4f::operator* ( float  scalar) const
inline
Vector4f& Legion::Vector4f::operator*= ( float  scalar)
inline
Vector4f Legion::Vector4f::operator+ ( const Vector4f vec) const
inline
Vector4f& Legion::Vector4f::operator+= ( const Vector4f vec)
inline
Vector4f Legion::Vector4f::operator- ( const Vector4f vec) const
inline
Vector4f Legion::Vector4f::operator- ( ) const
inline
Vector4f& Legion::Vector4f::operator-= ( const Vector4f vec)
inline
Vector4f Legion::Vector4f::operator/ ( float  scalar) const
inline
Vector4f& Legion::Vector4f::operator/= ( float  scalar)
inline
bool Legion::Vector4f::operator< ( const Vector4f vec) const
inline
bool Legion::Vector4f::operator<= ( const Vector4f vec) const
inline
Vector4f& Legion::Vector4f::operator= ( const Vector4f vec)
inline
bool Legion::Vector4f::operator== ( const Vector4f vec) const
inline
bool Legion::Vector4f::operator> ( const Vector4f vec) const
inline
bool Legion::Vector4f::operator>= ( const Vector4f vec) const
inline
void Legion::Vector4f::setLength ( float  newLength)
inline

Member Data Documentation

union { ... }
float Legion::Vector4f::data[4]
float Legion::Vector4f::w
float Legion::Vector4f::x
float Legion::Vector4f::y
float Legion::Vector4f::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)