TPoint record
Point in a plane.
Declaration
TPoint = packed recordDescription
TPoint is a generic definition of a point in a 2-dimensional
discrete plane, where
X indicates the horizontal position, and
Y the vertical position (positions usually measured in pixels),
and
0,0 is the origin of the plane.
Usually, the origin is the upper-left corner of the screen, with Y increasing as one moves further down the screen - this is opposite to the mathematical view where Y increases as one moves upwards.
The coordinates are integers, (32-bit, signed) so the coordinate system
runs from -MaxInt to MaxInt.
See also
Methods
Zero | public | |
Add | public | |
Distance | public | |
IsZero | public | |
Subtract | public | |
SetLocation | public | |
Offset | public | |
Angle | public | |
PointInCircle | public | |
equal(TPoint,TPoint):Boolean | public | |
notequal(TPoint,TPoint):Boolean | public | |
add(TPoint,TPoint):TPoint | public | |
subtract(TPoint,TPoint):TPoint | public | |
assign(TSmallPoint):TPoint | public | |
explicit(TPoint):TSmallPoint | public |
Fields
X | public | Horizontal position. |
Y | public | Vertical position. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
