![]() |
• Math Library | ||||||||||||||||||||||||||
|
API Links
Developer Links
|
class Point2DDefined in:
The C4Vector2D.hPoint2D class encapsulates a 2D point.
Definition
Constructor
Parameters
Description
The Point2D class is used to store a two-dimensional point having floating-point components x and y. The difference between a point and a vector is that a point is assumed to have a w coordinate of 1 whenever it needs to be converted to a four-dimensional representation, whereas a vector is assumed to have a w coordinate of 0. Such a conversion occurs when a vector or point is assigned to a Vector4D object or is multiplied by a Transform4D object.The default constructor leaves the components of the vector undefined. If the values r and s are supplied, then they are assigned to the x and y components of the base vector object, respectively.The difference between two points produces a direction vector. A two-dimensional direction vector is converted to a point by adding it to the identifier Origin2D.
Overloaded Operators
Nonmember Operations
Base Classes
See Also
|