Public Member Functions | Public Attributes | Friends
IceMaths::HPoint Class Reference

#include <OPC_IceHook.h>

Inheritance diagram for IceMaths::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

Definition at line 16 of file OPC_IceHook.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 21 of file OPC_IceHook.h.

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

Constructor from floats.

Definition at line 23 of file OPC_IceHook.h.

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

Constructor from array.

Definition at line 25 of file OPC_IceHook.h.

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

Constructor from a Point.

Definition at line 27 of file OPC_IceHook.h.

Destructor.

Definition at line 29 of file OPC_IceHook.h.


Member Function Documentation

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

Add a vector.

Definition at line 42 of file OPC_IceHook.h.

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

Add a vector.

Definition at line 44 of file OPC_IceHook.h.

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

Computes magnitude.

Reimplemented from IceMaths::Point.

Definition at line 66 of file OPC_IceHook.h.

float IceMaths::HPoint::Max ( ) const [inline]

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

Reimplemented from IceMaths::Point.

Definition at line 57 of file OPC_IceHook.h.

Sets each element to be componentwise maximum.

Definition at line 61 of file OPC_IceHook.h.

float IceMaths::HPoint::Min ( ) const [inline]

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

Reimplemented from IceMaths::Point.

Definition at line 55 of file OPC_IceHook.h.

Sets each element to be componentwise minimum.

Definition at line 59 of file OPC_IceHook.h.

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

Multiplies by a scalar.

Definition at line 52 of file OPC_IceHook.h.

Normalize the vector.

Reimplemented from IceMaths::Point.

Definition at line 69 of file OPC_IceHook.h.

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

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

Definition at line 146 of file OPC_IceHook.h.

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

Operator for HPoint Mul = HPoint * HPoint;.

Definition at line 93 of file OPC_IceHook.h.

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

Operator for HPoint Scale = HPoint * float;.

Reimplemented from IceMaths::Point.

Definition at line 95 of file OPC_IceHook.h.

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

Operator for Point Mul = HPoint * Matrix3x3;.

Reimplemented from IceMaths::Point.

Definition at line 36 of file IceHPoint.cpp.

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

Operator for HPoint Mul = HPoint * Matrix4x4;.

Reimplemented from IceMaths::Point.

Definition at line 47 of file IceHPoint.cpp.

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

Operator for HPoint *= HPoint;.

Definition at line 121 of file OPC_IceHook.h.

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

Operator for HPoint *= float;.

Reimplemented from IceMaths::Point.

Definition at line 123 of file OPC_IceHook.h.

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

Operator for HPoint *= Matrix4x4.

Reimplemented from IceMaths::Point.

Definition at line 59 of file IceHPoint.cpp.

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

Operator for HPoint Plus = HPoint + HPoint;.

Definition at line 88 of file OPC_IceHook.h.

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

Operator for HPoint += HPoint;.

Definition at line 111 of file OPC_IceHook.h.

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

Operator for HPoint += float;.

Reimplemented from IceMaths::Point.

Definition at line 113 of file OPC_IceHook.h.

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

Operator for HPoint Negate = - HPoint;.

Reimplemented from IceMaths::Point.

Definition at line 85 of file OPC_IceHook.h.

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

Operator for HPoint Minus = HPoint - HPoint;.

Definition at line 90 of file OPC_IceHook.h.

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

Operator for HPoint -= HPoint;.

Definition at line 116 of file OPC_IceHook.h.

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

Operator for HPoint -= float;.

Reimplemented from IceMaths::Point.

Definition at line 118 of file OPC_IceHook.h.

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

Operator for HPoint Div = HPoint / HPoint;.

Definition at line 100 of file OPC_IceHook.h.

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

Operator for HPoint Scale = HPoint / float;.

Reimplemented from IceMaths::Point.

Definition at line 102 of file OPC_IceHook.h.

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

Operator for HPoint /= HPoint;.

Definition at line 126 of file OPC_IceHook.h.

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

Operator for HPoint /= float;.

Reimplemented from IceMaths::Point.

Definition at line 128 of file OPC_IceHook.h.

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

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

Definition at line 144 of file OPC_IceHook.h.

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

Operator for float DotProd = HPoint | HPoint;.

Definition at line 107 of file OPC_IceHook.h.

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

Assignment from values.

Definition at line 35 of file OPC_IceHook.h.

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

Assignment from array.

Definition at line 37 of file OPC_IceHook.h.

Assignment from another h-point.

Definition at line 39 of file OPC_IceHook.h.

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

Computes square magnitude.

Reimplemented from IceMaths::Point.

Definition at line 64 of file OPC_IceHook.h.

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

Subtract a vector.

Definition at line 47 of file OPC_IceHook.h.

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

Subtract a vector.

Definition at line 49 of file OPC_IceHook.h.

Clear the point.

Reimplemented from IceMaths::Point.

Definition at line 32 of file OPC_IceHook.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 97 of file OPC_IceHook.h.

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

Operator for HPoint Scale = float / HPoint;.

Definition at line 104 of file OPC_IceHook.h.


Member Data Documentation

Cast a HPoint to a Point. w is discarded.

Definition at line 157 of file OPC_IceHook.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:22