### IPoint

  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.

#### OS/2 Considerations

  You can also construct objects of this class from a Presentation Manager Toolkit POINTL structure.

### IPoint - Member Functions and Data by Group

### Constructors & Destructor

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.

IPoint
  Construct and destruct an IPoint object.

  Overload 1

      public:
      IPoint(const IPair& pair)

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 2

      public:
      IPoint(Coord x, Coord y)

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 3

      public:
      IPoint(const struct tagPOINT& ptl)

Supported Platforms

  Windows | OS/2 | AIX
  Yes | No | No

  Overload 4

      public:
      IPoint(const struct _POINTL& ptl)

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

  Overload 5

      public:
      IPoint()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Conversions

Use these members to return an IPoint object in a different form.

asPOINTL

      public:
      struct _POINTL asPOINTL() const

  Renders the point as a Presentation Manager Toolkit POINTL structure.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### Coordinates

Use these members to query and change the x and y coordinates of an IPoint object.

setX

      public:
      IPoint& setX(Coord X)

  Sets the point's X-coordinate.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

setY

      public:
      IPoint& setY(Coord Y)

  Sets the point's Y-coordinate.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

x

      public:
      Coord x() const

  Returns the point's X-coordinate.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

y

      public:
      Coord y() const

  Returns the point's Y-coordinate.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IPoint - Inherited Member Functions and Data

#### Inherited Public Functions

  IPair

  -     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()

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None