Public Member Functions | Public Attributes | Friends
HPoint Class Reference

#include <IceHPoint.h>

Inheritance diagram for HPoint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

inline_ HPointAdd (float _x, float _y, float _z, float _w)
 Add a vector.
inline_ HPointAdd (const float f[4])
 Add a vector.
inline_ HPoint ()
 Empty constructor.
inline_ HPoint (float _x, float _y, float _z, float _w=0.0f)
 Constructor from floats.
inline_ HPoint (const float f[4])
 Constructor from array.
inline_ HPoint (const Point &p, float _w=0.0f)
 Constructor from a Point.
inline_ float Magnitude () const
 Computes magnitude.
float Max () const
 Returns MAX(x, y, z, w);.
HPointMax (const HPoint &p)
 Sets each element to be componentwise maximum.
float Min () const
 Returns MIN(x, y, z, w);.
HPointMin (const HPoint &p)
 Sets each element to be componentwise minimum.
inline_ HPointMul (float s)
 Multiplies by a scalar.
inline_ HPointNormalize ()
 Normalize the vector.
inline_ bool operator!= (const HPoint &p) const
 Operator for "if(HPoint!=HPoint)".
inline_ HPoint operator* (const HPoint &p) const
 Operator for HPoint Mul = HPoint * HPoint;.
inline_ HPoint operator* (float s) const
 Operator for HPoint Scale = HPoint * float;.
Point operator* (const Matrix3x3 &mat) const
 Operator for Point Mul = HPoint * Matrix3x3;.
HPoint operator* (const Matrix4x4 &mat) const
 Operator for HPoint Mul = HPoint * Matrix4x4;.
inline_ HPointoperator*= (const HPoint &p)
 Operator for HPoint *= HPoint;.
inline_ HPointoperator*= (float s)
 Operator for HPoint *= float;.
HPointoperator*= (const Matrix4x4 &mat)
 Operator for HPoint *= Matrix4x4.
inline_ HPoint operator+ (const HPoint &p) const
 Operator for HPoint Plus = HPoint + HPoint;.
inline_ HPointoperator+= (const HPoint &p)
 Operator for HPoint += HPoint;.
inline_ HPointoperator+= (float s)
 Operator for HPoint += float;.
inline_ HPoint operator- () const
 Operator for HPoint Negate = - HPoint;.
inline_ HPoint operator- (const HPoint &p) const
 Operator for HPoint Minus = HPoint - HPoint;.
inline_ HPointoperator-= (const HPoint &p)
 Operator for HPoint -= HPoint;.
inline_ HPointoperator-= (float s)
 Operator for HPoint -= float;.
inline_ HPoint operator/ (const HPoint &p) const
 Operator for HPoint Div = HPoint / HPoint;.
inline_ HPoint operator/ (float s) const
 Operator for HPoint Scale = HPoint / float;.
inline_ HPointoperator/= (const HPoint &p)
 Operator for HPoint /= HPoint;.
inline_ HPointoperator/= (float s)
 Operator for HPoint /= float;.
inline_ bool operator== (const HPoint &p) const
 Operator for "if(HPoint==HPoint)".
inline_ float operator| (const HPoint &p) const
 Operator for float DotProd = HPoint | HPoint;.
inline_ HPointSet (float _x, float _y, float _z, float _w)
 Assignment from values.
inline_ HPointSet (const float f[4])
 Assignment from array.
inline_ HPointSet (const HPoint &src)
 Assignment from another h-point.
inline_ float SquareMagnitude () const
 Computes square magnitude.
inline_ HPointSub (float _x, float _y, float _z, float _w)
 Subtract a vector.
inline_ HPointSub (const float f[4])
 Subtract a vector.
inline_ HPointZero ()
 Clear the point.
inline_ ~HPoint ()
 Destructor.

Public Attributes

float w
 Cast a HPoint to a Point. w is discarded.

Friends

inline_ friend HPoint operator* (float s, const HPoint &p)
 Operator for HPoint Scale = float * HPoint;.
inline_ friend HPoint operator/ (float s, const HPoint &p)
 Operator for HPoint Scale = float / HPoint;.

Detailed Description

Homogeneous point.

Use it:

Author:
Pierre Terdiman
Version:
1.0
Warning:
No cross-product in 4D.
HPoint *= Matrix3x3 doesn't exist, the matrix is first casted to a 4x4

Definition at line 15 of file IceHPoint.h.


Constructor & Destructor Documentation

inline_ HPoint::HPoint ( ) [inline]

Empty constructor.

Definition at line 20 of file IceHPoint.h.

inline_ HPoint::HPoint ( float  _x,
float  _y,
float  _z,
float  _w = 0.0f 
) [inline]

Constructor from floats.

Definition at line 22 of file IceHPoint.h.

inline_ HPoint::HPoint ( const float  f[4]) [inline]

Constructor from array.

Definition at line 24 of file IceHPoint.h.

inline_ HPoint::HPoint ( const Point p,
float  _w = 0.0f 
) [inline]

Constructor from a Point.

Definition at line 26 of file IceHPoint.h.

inline_ HPoint::~HPoint ( ) [inline]

Destructor.

Definition at line 28 of file IceHPoint.h.


Member Function Documentation

inline_ HPoint& HPoint::Add ( float  _x,
float  _y,
float  _z,
float  _w 
) [inline]

Add a vector.

Definition at line 41 of file IceHPoint.h.

inline_ HPoint& HPoint::Add ( const float  f[4]) [inline]

Add a vector.

Definition at line 43 of file IceHPoint.h.

inline_ float HPoint::Magnitude ( ) const [inline]

Computes magnitude.

Reimplemented from Point.

Definition at line 65 of file IceHPoint.h.

float HPoint::Max ( ) const [inline]

Returns MAX(x, y, z, w);.

Reimplemented from Point.

Definition at line 56 of file IceHPoint.h.

HPoint& HPoint::Max ( const HPoint p) [inline]

Sets each element to be componentwise maximum.

Definition at line 60 of file IceHPoint.h.

float HPoint::Min ( ) const [inline]

Returns MIN(x, y, z, w);.

Reimplemented from Point.

Definition at line 54 of file IceHPoint.h.

HPoint& HPoint::Min ( const HPoint p) [inline]

Sets each element to be componentwise minimum.

Definition at line 58 of file IceHPoint.h.

inline_ HPoint& HPoint::Mul ( float  s) [inline]

Multiplies by a scalar.

Definition at line 51 of file IceHPoint.h.

Normalize the vector.

Reimplemented from Point.

Definition at line 68 of file IceHPoint.h.

inline_ bool HPoint::operator!= ( const HPoint p) const [inline]

Operator for "if(HPoint!=HPoint)".

Definition at line 145 of file IceHPoint.h.

inline_ HPoint HPoint::operator* ( const HPoint p) const [inline]

Operator for HPoint Mul = HPoint * HPoint;.

Definition at line 92 of file IceHPoint.h.

inline_ HPoint HPoint::operator* ( float  s) const [inline]

Operator for HPoint Scale = HPoint * float;.

Reimplemented from Point.

Definition at line 94 of file IceHPoint.h.

Point HPoint::operator* ( const Matrix3x3 mat) const

Operator for Point Mul = HPoint * Matrix3x3;.

Reimplemented from Point.

HPoint HPoint::operator* ( const Matrix4x4 mat) const

Operator for HPoint Mul = HPoint * Matrix4x4;.

Reimplemented from Point.

inline_ HPoint& HPoint::operator*= ( const HPoint p) [inline]

Operator for HPoint *= HPoint;.

Definition at line 120 of file IceHPoint.h.

inline_ HPoint& HPoint::operator*= ( float  s) [inline]

Operator for HPoint *= float;.

Reimplemented from Point.

Definition at line 122 of file IceHPoint.h.

HPoint& HPoint::operator*= ( const Matrix4x4 mat)

Operator for HPoint *= Matrix4x4.

Reimplemented from Point.

inline_ HPoint HPoint::operator+ ( const HPoint p) const [inline]

Operator for HPoint Plus = HPoint + HPoint;.

Definition at line 87 of file IceHPoint.h.

inline_ HPoint& HPoint::operator+= ( const HPoint p) [inline]

Operator for HPoint += HPoint;.

Definition at line 110 of file IceHPoint.h.

inline_ HPoint& HPoint::operator+= ( float  s) [inline]

Operator for HPoint += float;.

Reimplemented from Point.

Definition at line 112 of file IceHPoint.h.

inline_ HPoint HPoint::operator- ( ) const [inline]

Operator for HPoint Negate = - HPoint;.

Reimplemented from Point.

Definition at line 84 of file IceHPoint.h.

inline_ HPoint HPoint::operator- ( const HPoint p) const [inline]

Operator for HPoint Minus = HPoint - HPoint;.

Definition at line 89 of file IceHPoint.h.

inline_ HPoint& HPoint::operator-= ( const HPoint p) [inline]

Operator for HPoint -= HPoint;.

Definition at line 115 of file IceHPoint.h.

inline_ HPoint& HPoint::operator-= ( float  s) [inline]

Operator for HPoint -= float;.

Reimplemented from Point.

Definition at line 117 of file IceHPoint.h.

inline_ HPoint HPoint::operator/ ( const HPoint p) const [inline]

Operator for HPoint Div = HPoint / HPoint;.

Definition at line 99 of file IceHPoint.h.

inline_ HPoint HPoint::operator/ ( float  s) const [inline]

Operator for HPoint Scale = HPoint / float;.

Reimplemented from Point.

Definition at line 101 of file IceHPoint.h.

inline_ HPoint& HPoint::operator/= ( const HPoint p) [inline]

Operator for HPoint /= HPoint;.

Definition at line 125 of file IceHPoint.h.

inline_ HPoint& HPoint::operator/= ( float  s) [inline]

Operator for HPoint /= float;.

Reimplemented from Point.

Definition at line 127 of file IceHPoint.h.

inline_ bool HPoint::operator== ( const HPoint p) const [inline]

Operator for "if(HPoint==HPoint)".

Definition at line 143 of file IceHPoint.h.

inline_ float HPoint::operator| ( const HPoint p) const [inline]

Operator for float DotProd = HPoint | HPoint;.

Definition at line 106 of file IceHPoint.h.

inline_ HPoint& HPoint::Set ( float  _x,
float  _y,
float  _z,
float  _w 
) [inline]

Assignment from values.

Definition at line 34 of file IceHPoint.h.

inline_ HPoint& HPoint::Set ( const float  f[4]) [inline]

Assignment from array.

Definition at line 36 of file IceHPoint.h.

inline_ HPoint& HPoint::Set ( const HPoint src) [inline]

Assignment from another h-point.

Definition at line 38 of file IceHPoint.h.

inline_ float HPoint::SquareMagnitude ( ) const [inline]

Computes square magnitude.

Reimplemented from Point.

Definition at line 63 of file IceHPoint.h.

inline_ HPoint& HPoint::Sub ( float  _x,
float  _y,
float  _z,
float  _w 
) [inline]

Subtract a vector.

Definition at line 46 of file IceHPoint.h.

inline_ HPoint& HPoint::Sub ( const float  f[4]) [inline]

Subtract a vector.

Definition at line 48 of file IceHPoint.h.

inline_ HPoint& HPoint::Zero ( ) [inline]

Clear the point.

Reimplemented from Point.

Definition at line 31 of file IceHPoint.h.


Friends And Related Function Documentation

inline_ friend HPoint operator* ( float  s,
const HPoint p 
) [friend]

Operator for HPoint Scale = float * HPoint;.

Definition at line 96 of file IceHPoint.h.

inline_ friend HPoint operator/ ( float  s,
const HPoint p 
) [friend]

Operator for HPoint Scale = float / HPoint;.

Definition at line 103 of file IceHPoint.h.


Member Data Documentation

float HPoint::w

Cast a HPoint to a Point. w is discarded.

Definition at line 156 of file IceHPoint.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:59