Class: etk::Vector2D
Synopsis:
+ Vector2D (void);
+ Vector2D (T _x,
T _y);
+ Vector2D (const Vector2D<double> & obj);
+ Vector2D (const Vector2D<float> & obj);
+ Vector2D (const Vector2D<int32_t> & obj);
+ Vector2D (const std::string & str);
+ Vector2D (const std::u32string & str);
+ ~Vector2D (void);
+ const Vector2D& operator= (const Vector2D & obj);
+ const Vector2D& operator= (const T val);
+ bool operator== (const Vector2D& obj);
+ bool operator!= (const Vector2D& obj);
+ const Vector2D& operator+= (const Vector2D & obj);
+ const Vector2D& operator+= (const T val);
+ Vector2Doperator+ (const Vector2D & obj);
+ Vector2Doperator+ (const T val);
+ const Vector2D& operator-= (const Vector2D & obj);
+ const Vector2D& operator-= (const T val);
+ Vector2Doperator- (const Vector2D & obj);
+ Vector2Doperator- (const T val);
+ const Vector2D& operator*= (const Vector2D & obj);
+ const Vector2D& operator*= (const T val);
+ Vector2Doperator* (const Vector2D & obj);
+ Vector2Doperator* (const T val);
+ Vector2Doperator/ (const Vector2D & obj);
+ Vector2Doperator/ (const T val);
+ Vector2D& operator++ ();
+ Vector2Doperator++ (int unused);
+ Vector2D& operator-- ();
+ Vector2Doperator-- (int unused);
+ btScalar dot (const Vector2D& v);
+ btScalar length2 (void);
+ btScalar length (void);
+ btScalar distance2 (const btVector3 & v);
+ btScalar distance (const btVector3 & v);
+ Vector3D& normalize (void);
+ Vector2Dnormalized (void);
+ Vector2Dabsolute (void);
+ int32_t minAxis (void);
+ int32_t maxAxis (void);
+ int32_t furthestAxis (void);
+ int32_t closestAxis (void);
+ const T & getX ();
+ const T & getY ();
+ void setX (T _x);
+ void setY (T _y);
+ const T & x ();
+ const T & y ();
+ void operatorT* ();
+ void operatorconstT* ();
+ void setMax (const Vector2D& other);
+ void setMin (const Vector2D& other);
+ void setValue (const T & _x,
const T & _y);
+ void setZero (void);
+ bool isZero (void);
+ void string (void);
+ void u32string (void);
Detail:
etk::Vector2D ()
Vector2D(void);
etk::Vector2D ()
Vector2D(T _x,
T _y);
etk::Vector2D ()
Vector2D(const Vector2D<double> & obj);
etk::Vector2D ()
Vector2D(const Vector2D<float> & obj);
etk::Vector2D ()
Vector2D(const Vector2D<int32_t> & obj);
etk::Vector2D ()
Vector2D(const std::string & str);
etk::Vector2D ()
Vector2D(const std::u32string & str);
etk::~Vector2D ()
~Vector2D(void);
operator= ()
const Vector2D & operator=(const Vector2D & obj);
operator= ()
const Vector2D & operator=(const T val);
operator== ()
bool operator==(const Vector2D & obj);
operator!= ()
bool operator!=(const Vector2D & obj);
operator+= ()
const Vector2D & operator+=(const Vector2D & obj);
operator+= ()
const Vector2D & operator+=(const T val);
operator+ ()
Vector2D operator+(const Vector2D & obj);
operator+ ()
Vector2D operator+(const T val);
operator-= ()
const Vector2D & operator-=(const Vector2D & obj);
operator-= ()
const Vector2D & operator-=(const T val);
operator- ()
Vector2D operator-(const Vector2D & obj);
operator- ()
Vector2D operator-(const T val);
operator*= ()
const Vector2D & operator*=(const Vector2D & obj);
operator*= ()
const Vector2D & operator*=(const T val);
operator* ()
Vector2D operator*(const Vector2D & obj);
operator* ()
Vector2D operator*(const T val);
operator/ ()
Vector2D operator/(const Vector2D & obj);
operator/ ()
Vector2D operator/(const T val);
operator++ ()
Vector2D & operator++();
operator++ ()
Vector2D operator++(int unused);
operator-- ()
Vector2D & operator--();
operator-- ()
Vector2D operator--(int unused);
dot ()
btScalar dot(const Vector2D & v);
Return the dot product
Parameter: v The other vector in the dot product
length2 ()
btScalar length2(void);
Return the length of the vector squared
length ()
btScalar length(void);
Return the length of the vector
distance2 ()
btScalar distance2(const btVector3 & v);
Return the distance squared between the ends of this and another vector
This is symantically treating the vector like a point
distance ()
btScalar distance(const btVector3 & v);
Return the distance between the ends of this and another vector
This is symantically treating the vector like a point
normalize ()
Vector3D & normalize(void);
Normalize this vector
x^2 + y^2 + z^2 = 1
normalized ()
Vector2D normalized(void);
Return a normalized version of this vector
absolute ()
Vector2D absolute(void);
Return a vector will the absolute values of each element
minAxis ()
int32_t minAxis(void);
Return the axis with the smallest value
Note return values are 0,1,2 for x, y, or z
maxAxis ()
int32_t maxAxis(void);
Return the axis with the largest value
Note return values are 0,1,2 for x, y, or z
furthestAxis ()
int32_t furthestAxis(void);
closestAxis ()
int32_t closestAxis(void);
getX ()
const T & getX();
Return the x value
getY ()
const T & getY();
Return the y value
setX ()
void setX(T _x);
Set the x value
setY ()
void setY(T _y);
Set the y value
x ()
const T & x();
Return the x value
y ()
const T & y();
Return the y value
operatorT* ()
void operatorT*();
operatorconstT* ()
void operatorconstT*();
setMax ()
void setMax(const Vector2D & other);
Set each element to the max of the current values and the values of another btVector3
Parameter: other The other btVector3 to compare with
setMin ()
void setMin(const Vector2D & other);
Set each element to the min of the current values and the values of another btVector3
Parameter: other The other btVector3 to compare with
setValue ()
void setValue(const T & _x,
const T & _y);
setZero ()
void setZero(void);
isZero ()
bool isZero(void);
string ()
void string(void);
u32string ()
void u32string(void);
etk::Vector2D ()
Vector2D(void);
etk::Vector2D ()
Vector2D(T _x, T _y);
etk::Vector2D ()
Vector2D(const Vector2D<double> & obj);
etk::Vector2D ()
Vector2D(const Vector2D<float> & obj);
etk::Vector2D ()
Vector2D(const Vector2D<int32_t> & obj);
etk::Vector2D ()
Vector2D(const std::string & str);
etk::Vector2D ()
Vector2D(const std::u32string & str);
etk::~Vector2D ()
~Vector2D(void);
operator= ()
const Vector2D& operator=(const Vector2D & obj);
operator= ()
const Vector2D& operator=(const T val);
operator== ()
bool operator==(const Vector2D& obj);
operator!= ()
bool operator!=(const Vector2D& obj);
operator+= ()
const Vector2D& operator+=(const Vector2D & obj);
operator+= ()
const Vector2D& operator+=(const T val);
operator+ ()
Vector2Doperator+(const Vector2D & obj);
operator+ ()
Vector2Doperator+(const T val);
operator-= ()
const Vector2D& operator-=(const Vector2D & obj);
operator-= ()
const Vector2D& operator-=(const T val);
operator- ()
Vector2Doperator-(const Vector2D & obj);
operator- ()
Vector2Doperator-(const T val);
operator*= ()
const Vector2D& operator*=(const Vector2D & obj);
operator*= ()
const Vector2D& operator*=(const T val);
operator* ()
Vector2Doperator*(const Vector2D & obj);
operator* ()
Vector2Doperator*(const T val);
operator/ ()
Vector2Doperator/(const Vector2D & obj);
operator/ ()
Vector2Doperator/(const T val);
operator++ ()
Vector2D& operator++();
operator++ ()
Vector2Doperator++(int unused);
operator-- ()
Vector2D& operator--();
operator-- ()
Vector2Doperator--(int unused);
dot ()
btScalar dot(const Vector2D& v);
Return the dot product
-
Parameter: v The other vector in the dot product
length2 ()
btScalar length2(void);
Return the length of the vector squared
length ()
btScalar length(void);
Return the length of the vector
distance2 ()
btScalar distance2(const btVector3 & v);
Return the distance squared between the ends of this and another vector This is symantically treating the vector like a point
distance ()
btScalar distance(const btVector3 & v);
Return the distance between the ends of this and another vector This is symantically treating the vector like a point
normalize ()
Vector3D& normalize(void);
Normalize this vector x^2 + y^2 + z^2 = 1
normalized ()
Vector2Dnormalized(void);
Return a normalized version of this vector
absolute ()
Vector2Dabsolute(void);
Return a vector will the absolute values of each element
minAxis ()
int32_t minAxis(void);
Return the axis with the smallest value Note return values are 0,1,2 for x, y, or z
maxAxis ()
int32_t maxAxis(void);
Return the axis with the largest value Note return values are 0,1,2 for x, y, or z
furthestAxis ()
int32_t furthestAxis(void);
closestAxis ()
int32_t closestAxis(void);
getX ()
const T & getX();
Return the x value
getY ()
const T & getY();
Return the y value
setX ()
void setX(T _x);
Set the x value
setY ()
void setY(T _y);
Set the y value
x ()
const T & x();
Return the x value
y ()
const T & y();
Return the y value
operatorT* ()
void operatorT*();
operatorconstT* ()
void operatorconstT*();
setMax ()
void setMax(const Vector2D& other);
Set each element to the max of the current values and the values of another btVector3
-
Parameter: other The other btVector3 to compare with
setMin ()
void setMin(const Vector2D& other);
Set each element to the min of the current values and the values of another btVector3
-
Parameter: other The other btVector3 to compare with
setValue ()
void setValue(const T & _x, const T & _y);
setZero ()
void setZero(void);
isZero ()
bool isZero(void);
string ()
void string(void);
u32string ()
void u32string(void);