C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
VSN::PointI Class Reference

PointI class defines point on the plane using integer precision. More...

#include <vsn_point.h>

Public Member Functions

 PointI () noexcept
 Default constructor.
 
 PointI (int x, int y) noexcept
 Special constructor for initialization X- and Y-coordinates.
 
 PointI (const PointI &other) noexcept
 Сonstructor.
 
bool IsNull () const noexcept
 True if both X- and Y-coordinates are 0.
 
int GetX () const noexcept
 Returns X-coordinate.
 
void SetX (int x) noexcept
 Sets X-coordinate.
 
int GetY () const noexcept
 Returns Y-coordinate.
 
void SetY (int y) noexcept
 Sets Y-coordinate.
 
int & InitX () noexcept
 Initializes X-coordinate.
 
int & InitY () noexcept
 Initializes Y-coordinate.
 
int GetVectorLength () const
 NO TRANSLATION.
 
PointIoperator+= (const PointI &p)
 Adds the specified point to the given point and returns point reference.
 
PointIoperator-= (const PointI &p)
 Subtracts the specified point from the given point and returns point reference.
 
bool operator== (const PointI &p)
 True if the specified point and the given point are equal.
 
bool operator!= (const PointI &p)
 True if the specified point and the given point are not equal.
 

Detailed Description

PointI class defines point on the plane using integer precision.

PointI 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.


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