class HT_Point


See Also

HT_Vector, HT_DC_Point, HT_DCI_Point

Data Members

x,y,z                  Stores the discrete point values.

Operators

operator *             Scales the HT_Point object by a scalar value.
operator *=            Scales the HT_Point object by a scalar value.
operator +             Adds an HT_Point object by another HT_Point, 
                                              or an HT_Vector object.
operator +=                              Adds an  HT_Vector to this HT_Point object.
operator -             Subtracts an HT_Point object by another HT_Point, 
                                              or an HT_Vector object.
operator -=            Subtracts an HT_Vector from this HT_Point object
operator /             Scales the HT_Point object by a scalar value.
operator /=            Scales the HT_Point object by a scalar value.
operator ==            Compares two HT_Point objects for equality.
operator !=            Compares two HT_Point objects for inequality.
operator []            Returns an indexed HT_Point object where the 
                                              indices correspond as follows: x=0, y=1, z=2.

Constructor

HT_Point               Constructs a point object.

 


HT_Point::HT_Point

Purpose

Initializes a new HT_Point object.

Synopsis

HT_Point ()
HT_Point (float px, float py, float)
HT_Point (HT_Point const & pt)

Details

The first form initializes to indeterminate values.

The second initializes to (px, py, pz). The default for pz is 0.0f

The third initializes to the components of the argument point.


HT_Point::operator ...

Purpose

Provides various arithmetic operators on HT_Point objects.

Synopsis

operator * (float value)
operator *= (float value)
operator + (HT_Point const & pt)
operator + (HT_Vector const & vec)
operator += (HT_Vector const & vec)
operator - (HT_Point const & pt)
operator - (HT_Vector const & vec)
operator -= (HT_Vector const & vec)
operator / (float value)
operator /= (float value)
operator == (HT_Point const & pt)
operator != (HT_Point const & pt)

Details

These operators provide the indicated arithmetic operations on this HT_Point object.

 


HT_Point::operator [ ]

Purpose

Provides an indexing operator on HT_Point objects.

Synopsis

operator []= (int index)

Details

This operator, the indexing operator, provides a method to access each component of the HT_Point object individually. The indices correspond to x, y, z as follows: x=0, y=1, z=2.


HT_Point::x, y, z

Purpose

The components of the point.

Synopsis

float x, y, z

Details

These are the components of the point. They are made public for easy access.