Homogeneous vector (double-precision version)
Inheritance:
Public Methods
-
FXDHVec()
- Default constructor
-
FXDHVec(const FXDHVec& w)
- Copy constructor
-
FXDHVec(FXdouble x, FXdouble y, FXdouble z, FXdouble w=1.0)
- Initialize with components
-
FXDHVec(const FXDVec& w)
- Initialize with 3-vector
-
FXDHVec(FXColor color)
- Initialize with color
-
FXdouble& operator[](FXint i)
- Return a non-const reference to the ith element
-
const FXdouble& operator[](FXint i) const
- Return a const reference to the ith element
-
FXDHVec& operator=(FXColor color)
- Assign color
-
FXDHVec& operator=(const FXDHVec& w)
- Assignment
-
FXDHVec& operator+=(const FXDHVec& a)
- Assigning operators
-
operator FXdouble*()
- Conversions
-
operator FXColor() const
- Convert to color
Protected Fields
-
FXdouble v[4]
Documentation
Homogeneous vector (double-precision version)
FXdouble v[4]
FXDHVec()
- Default constructor
FXDHVec(const FXDHVec& w)
- Copy constructor
FXDHVec(FXdouble x, FXdouble y, FXdouble z, FXdouble w=1.0)
- Initialize with components
FXDHVec(const FXDVec& w)
- Initialize with 3-vector
FXDHVec(FXColor color)
- Initialize with color
FXdouble& operator[](FXint i)
- Return a non-const reference to the ith element
const FXdouble& operator[](FXint i) const
- Return a const reference to the ith element
FXDHVec& operator=(FXColor color)
- Assign color
FXDHVec& operator=(const FXDHVec& w)
- Assignment
FXDHVec& operator+=(const FXDHVec& a)
- Assigning operators
operator FXdouble*()
- Conversions
operator FXColor() const
- Convert to color
- Direct child classes:
- FXDQuat
- Friends:
- FXDHVec operator-(const FXDHVec& a){return FXDHVec(-a.v[0],-a.v[1],-a.v[2],-a.v[3])
FXDHVec operator!(const FXDHVec& a){return a.v[0]==0.0 && a.v[1]==0.0 && a.v[2]==0.0 && a.v[3]==0.0
FXDHVec operator+(const FXDHVec& a,const FXDHVec& b){return FXDHVec(a.v[0]+b.v[0],a.v[1]+b.v[1],a.v[2]+b.v[2],a.v[3]+b.v[3])
FXDHVec operator-(const FXDHVec& a,const FXDHVec& b){return FXDHVec(a.v[0]-b.v[0],a.v[1]-b.v[1],a.v[2]-b.v[2],a.v[3]-b.v[3])
FXDHVec operator*(const FXDHVec& a,FXdouble n){return FXDHVec(a.v[0]*n,a.v[1]*n,a.v[2]*n,a.v[3]*n)
FXDHVec operator*(FXdouble n,const FXDHVec& a){return FXDHVec(n*a.v[0],n*a.v[1],n*a.v[2],n*a.v[3])
FXDHVec operator/(const FXDHVec& a,FXdouble n){return FXDHVec(a.v[0]/n,a.v[1]/n,a.v[2]/n,a.v[3]/n)
FXDHVec operator/(FXdouble n,const FXDHVec& a){return FXDHVec(n/a.v[0],n/a.v[1],n/a.v[2],n/a.v[3])
FXdouble operator*(const FXDHVec& a,const FXDHVec& b){return a.v[0]*b.v[0]+a.v[1]*b.v[1]+a.v[2]*b.v[2]+a.v[3]*b.v[3]
int operator==(const FXDHVec& a,const FXDHVec& b){return a.v[0]==b.v[0] && a.v[1]==b.v[1] && a.v[2]==b.v[2] && a.v[3]==b.v[3]
int operator==(const FXDHVec& a,FXdouble n){return a.v[0]==n && a.v[1]==n && a.v[2]==n && a.v[3]==n
int operator==(FXdouble n,const FXDHVec& a){return n==a.v[0] && n==a.v[1] && n==a.v[2] && n==a.v[3]
int operator!=(const FXDHVec& a,const FXDHVec& b){return a.v[0]!=b.v[0] || a.v[1]!=b.v[1] || a.v[2]!=b.v[2] || a.v[3]!=b.v[3]
int operator!=(const FXDHVec& a,FXdouble n){return a.v[0]!=n || a.v[1]!=n || a.v[2]!=n || a.v[3]!=n
int operator!=(FXdouble n,const FXDHVec& a){return n!=a.v[0] || n!=a.v[1] || n!=a.v[2] || n!=a.v[3]
FXdouble len(const FXDHVec& a)
FXDHVec normalize(const FXDHVec& a)
FXDHVec lo(const FXDHVec& a,const FXDHVec& b)
FXDHVec hi(const FXDHVec& a,const FXDHVec& b)
FXStream& operator<<(FXStream& store,const FXDHVec& v)
FXStream& operator>>(FXStream& store,FXDHVec& v)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.