The IPoint class represent points in two-dimensional space. In addition to all the functions inherited from its base class, IPair, the IPoint class provides additional functions.
You can also construct objects of this class from a Presentation Manager Toolkit POINTL structure.
You can create, copy, and assign objects of this class. This class uses the compiler-generated copy constructor and assignment operator to copy and assign IPoint objects.
![]() |
public:
IPoint(const IPair& pair)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IPoint(Coord x, Coord y)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IPoint(const struct tagPOINT& ptl)
Windows | OS/2 | AIX |
Yes | No | No |
public:
IPoint(const struct _POINTL& ptl)
Windows | OS/2 | AIX |
Yes | Yes | No |
public:
IPoint()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to return an IPoint object in a different form.
![]() |
public:
struct _POINTL asPOINTL() const
Renders the point as a Presentation Manager Toolkit POINTL structure.
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these members to query and change the x and y coordinates of an IPoint object.
![]() |
public:
IPoint& setX(Coord X)
Sets the point's X-coordinate.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IPoint& setY(Coord Y)
Sets the point's Y-coordinate.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Coord x() const
Returns the point's X-coordinate.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Coord y() const
Returns the point's Y-coordinate.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
IString asDebugInfo() const
IString asString() const
Coord coord1() const
Coord coord2() const
double distanceFrom(const IPair& aPair) const
long dotProduct(const IPair& aPair) const
IPair(Coord coord1, Coord coord2)
IPair(Coord init)
IPair()
IPair maximum(const IPair& aPair) const
IPair minimum(const IPair& aPair) const
bool operator !=(const IPair& aPair) const
IPair& operator %=(const IPair& aPair)
IPair& operator %=(long divisor)
IPair& operator *=(const IPair& aPair)
IPair& operator *=(double multiplier)
IPair& operator +=(const IPair& aPair)
IPair operator -() const
IPair& operator -=(const IPair& aPair)
IPair& operator /=(const IPair& aPair)
IPair& operator /=(double divisor)
bool operator <(const IPair& aPair) const
bool operator <=(const IPair& aPair) const
bool operator ==(const IPair& aPair) const
bool operator >(const IPair& aPair) const
bool operator >=(const IPair& aPair) const
IPair& scaleBy(double xFactor, double yFactor)
IPair scaledBy(double xFactor, double yFactor) const
IPair& setCoord1(Coord coord1)
IPair& setCoord2(Coord coord2)
IPair& transpose()