C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
PointI class defines point on the plane using float-precision. More...
#include <vsn_point.h>
Public Member Functions | |
PointF () | |
Default constructor. | |
PointF (const PointI &other) | |
Special constructor for initialization X- and Y-coordinates. | |
PointF (float x, float y) | |
Special constructor for initialization X- and Y-coordinates. | |
PointF (const MbCartPoint &pnt) | |
Special constructor for initialization X- and Y-coordinates. | |
bool | IsNull () const |
True if both X- and Y-coordinates are 0. | |
float | GetX () const |
Returns X-coordinate. | |
void | SetX (float x) |
Sets X-coordinate. | |
float | GetY () const |
Returns Y-coordinate. | |
void | SetY (float y) |
Sets Y-coordinate. | |
void | Init (float x, float y) |
Initializes X-coordinate, Y-coordinate. | |
float & | InitX () |
Initializes X-coordinate. | |
float & | InitY () |
Initializes Y-coordinate. | |
PointI class defines point on the plane using float-precision.
PointF is defined with X- and Y-coordinates that can be returned with GetX() and GetY() functions. IsNull() function returns True, if both X- and Y-coordinates are 0. The coordinates can be set or changed with SetX() and SetY() functions, or alternatively InitX() and InitY() functions that return coordinate references.