EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GVector4 Class Reference

#include "gpoint.h"

Inheritance diagram for GVector4:
Collaboration diagram for GVector4:

Public Member Functions

 GVector4 ()
 
 GVector4 (const GPoint &them)
 
 GVector4 (double x, double y, double z, double w=1.0f)
 
void operator() (double nx, double ny, double nz, double nw)
 
double dot4 (const GVector4 &them) const
 
double dot4 (const GPoint &them) const
 
const double w () const
 
- Public Member Functions inherited from GVector
 GVector ()
 
 GVector (Ga::GaFloat v)
 
 GVector (const Ga::GaFloat *v)
 
 GVector (Ga::GaFloat X, Ga::GaFloat Y, Ga::GaFloat Z)
 
 GVector (const GPoint &oth)
 
 GVector (const Ga::GaVec3 &oth)
 
 GVector (const GPoint &from, const GPoint &to)
 
- Public Member Functions inherited from Ga::GaVec3
 GaVec3 (const Parameter &oth)
 
GaExpInl GaVec3 ()
 
GaExpInl GaVec3 (GaFloat v)
 
GaExpInl GaVec3 (const GaFloat *v)
 
GaExpInl GaVec3 (GaFloat X, GaFloat Y, GaFloat Z)
 
GaExpInl GaVec3 (const GaVec3 &oth)
 
GaExpInl GaVec3 operator- (const GaVec3 &oth) const
 
GaExpInl GaVec3 operator* (GaFloat s) const
 
GaExpInl GaVec3 operator/ (GaFloat s) const
 
GaExpInl GaVec3 operator* (const GaVec3 &oth) const
 
GaExpInl GaVec3operator= (const GaVec3 &oth)
 
GaExpInl bool operator!= (const GaVec3 &oth) const
 
GaExpInl bool operator== (const GaVec3 &oth) const
 
GaExpInl GaVec3 operator+ (const GaVec3 &oth) const
 
GaExpInl GaVec3operator+= (const GaVec3 &oth)
 
GaExpInl GaVec3operator-= (const GaVec3 &oth)
 
GaExpInl GaVec3operator*= (GaFloat f)
 
GaExpInl GaVec3operator/= (GaFloat f)
 
GaExpInl GaVec3operator*= (const GaVec3 &oth)
 
GaExpInl GaVec3 crossProduct (const GaVec3 &oth) const
 
GaExpInl GaFloat dotProduct (const GaVec3 &oth) const
 
GaExpInl GaFloat lengthSquared () const
 
GaExpInl GaFloat length () const
 
GaExpInl GaFloat distance (const GaVec3 &oth) const
 
GaExpInl GaFloat normalize ()
 
GaFloat angle (float ax, float ay, float bx, float by)
 
GaExpInl GaFloat angle (const Ga::GaVec3 oth) const
 
GaVec3 slerp (Ga::GaVec3 v0, Ga::GaVec3 v1, double t)
 
GaExpInl bool isZero () const
 
GaExpInl bool isNotZero () const
 
GaExpInl bool isNaN () const
 
GaExpInl bool isInf () const
 
GaVec3 rotationTo (const Ga::GaVec3 &pos) const
 
GaVec3operator= (const Parameter &oth)
 

Public Attributes

double W
 
double pt [3]
 
- Public Attributes inherited from Ga::GaVec3
GaFloat x
 
GaFloat y
 
GaFloat z
 

Detailed Description

Definition at line 82 of file gpoint.h.

Constructor & Destructor Documentation

GVector4::GVector4 ( )
GVector4::GVector4 ( const GPoint them)
GVector4::GVector4 ( double  x,
double  y,
double  z,
double  w = 1.0f 
)

Member Function Documentation

double GVector4::dot4 ( const GVector4 them) const
double GVector4::dot4 ( const GPoint them) const
void GVector4::operator() ( double  nx,
double  ny,
double  nz,
double  nw 
)
inline

Definition at line 88 of file gpoint.h.

References pt, and W.

88 { pt[0] = nx; pt[1] = ny; pt[2] = nz; W = nw; }
double W
Definition: gpoint.h:94
double pt[3]
Definition: gpoint.h:95
const double GVector4::w ( ) const
inline

Definition at line 92 of file gpoint.h.

References W.

92 { return W; }
double W
Definition: gpoint.h:94

Member Data Documentation

double GVector4::pt[3]

Definition at line 95 of file gpoint.h.

Referenced by operator()().

double GVector4::W

Definition at line 94 of file gpoint.h.

Referenced by operator()(), and w().


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