- TGPoint
- ~TGPoint
- operator-
- operator+=
- operator-=
- operator*=
- operator/=
- operator=
- operator==
- operator!=
- operator<<=
- operator>>=
- operator[]
- DotProduct
- CrossProduct
- Interpolate
- VectorLength
- Normalize
- VectorAngle
- SetVectorLength
- SetVectorAngle
- SetPolarCoordinates

- Default constructor. The member variables are
*not*initialized. - Creates a TGPoint by initializing fX and fY to the specified coordinates.
- Copy constructor.

- Creates a point
*without*initializing the member variables. - Creates a point with the specified coordinates.
- Called to copy an object.

- Takes no parameters.
- GCoordinate x -The new x-coordinate.
- GCoordinate y -The new y-coordinate.
- const TGPoint & -The TGPoint to be copied.

- Takes no parameters.

- Takes no parameters.

- const TGPoint & Src -The vector to be added.

- const TGPoint & Src -The vector to be subtracted.

- Multiplies the TGPoint by the vector argument. (fX is multiplied by Src.fX, and fY by Src.fY.)
- Multiplies the TGPoint by the scalar argument. (Both coordinates are multiplied by the argument.)

- Called to scale a point preceding a *= sign.
- Called to scale a point preceding a *= sign. Call this function directly.

- const TGPoint & Src -The vector by which to multiply the TGPoint.
- const GCoordinate Src -A scalar value.

- Divides the TGPoint by the vector argument. (fX is divided by Src.fX, and fY by Src.fY.)
- Divides the TGPoint by the argument's value. (Both coordinates are divided by the argument.)

- Called to scale a point preceding a /= sign.
- Called to scale a point preceding a /= sign. Call this function directly.

- const TGPoint & Src -The vector by which to divide the TGPoint.
- const GCoordinate Src -The value by which to divide fX and fY.

- const TGPoint & Src -The point to be copied.

- const TGPoint & Src -The object whose coordinates are compared to this object's coordinates.

- const TGPoint & Src -The object whose coordinates are compared to this object's coordinates.

- TStream & fromwhere -The stream from which the object streams itself in.

- TStream & towhere -The stream to which the object streams itself.

- GCoordinate & operator [] (unsigned long index)
- const GCoordinate & operator [] (unsigned long index) const

- Returns the x- or y-coordinate, depending on the index.
- Returns the x- or y-coordinate of a const TGPoint.

- Called to retrieve a coordinate of the TGPoint preceding the [ symbol.
- Called to retrieve a coordinate of the const TGPoint preceding the [ symbol. Call this function directly.

- unsigned long index -0 for the x-coordinate, 1 for the y-coordinate.
- unsigned long index -0 for the x-coordinate, 1 for the y-coordinate.

- const TGPoint & vector -The vector whose dot product with this vector is to be computed.

- const TGPoint & vector -The vector whose cross product with this vector is to be computed.

- const TGPoint & dest -The other point, corresponding to u =1.0.
- GParametric u -Any value, where 0.0 =this point and 1.0 =dest. Values less than 0 or greater than 1 create an extrapolation along the line running through dest and this point.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- GCoordinate length -The new length of the vector.

- GDegrees angle -The new vector angle, in degrees. Angles are measured relative to the positive portion of the x-axis.

- GDegrees angle -The new angle, in degrees.
- GCoordinate length =1.0 -The new vector length.

Click the icon to mail questions or corrections about this material to Taligent personnel.

Copyright©1995 Taligent,Inc. All rights reserved.