![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section contents
ce32base.oxh
this& = NewPoint&:(X&,Y&)
Creates a point object and returns a handle which allows the object to be manipulated.
X& |
The X co-ordinate of the point. |
Y& |
The Y co-ordinate of the point |
this& |
An value which represents the created point |
If the object could not be created then an error is generated
which should be trapped by an ONERR
handler.
LOCAL this& this& = NewPoint&:(50,50) DeletePoint:(this&)
DeletePoint:(BYREF this&)
Destroys the point object.
BYREF this& |
A handle to a point object |
LOCAL this& this& = NewPoint&:(50,50) DeletePoint:(this&)
this& = PointAdd&:(this&,point&)
Adds the point in point&
to the point in this&
and returns the handle this&
.
this& |
A handle to a point object |
point& |
A handle to a point objec |
this& |
A handle to a point object |
this& = PointAddSize&:(this&,size&)
Adds the size in point&
to the point in this&
and returns the handle this&
.
this& |
A handle to a point object |
size& |
A handle to a size objec |
this& |
A handle to a point object |
size& = PointAsSize&:(this&)
this& |
A handle to a point object |
size& |
A size object created. The handle should be freed by the caller when it is no longer required. |
If the size&
object cannot be created then an
error is generated which should be trapped by an ONERR
handler.
result% = PointEQ%:(this&,point&)
Compares the 2 points for equality.
this& |
A handle to a point object |
point& |
A handle to a point objec |
result% |
Returns -1 (true) if the points described by this&
and point& are the same, otherwise
returns 0 |
this& = PointMinus&:(this&,point&)
Subtracts the point in point&
from the point
in this&
and returns the handle this&
.
this& |
A handle to a point object |
point& |
A handle to a point objec |
this& |
A handle to a point object |
this& = PointMinusSize&:(this&,size&)
Subtracts the size in point&
from the point
in this&
and returns the handle this&
.
this& |
A handle to a point object |
size& |
A handle to a size objec |
this& |
A handle to a point object |
result% = PointNE%:(this&,point&)
Compares the 2 point for inequality.
this& |
A handle to a point object |
point& |
A handle to a point objec |
result% |
Returns -1 (true) if the points described by this&
and point& are not the same, otherwise
returns 0 |
this& = PointNegate&:(this&)
Negates the point in this&
and returns the
handle this&
.
this& |
A handle to a point object |
this& |
A handle to a point object |
PointSetXY:(this&,X&,Y&)
Set the X and Y co-ordinates in the point object..
this& |
A handle to a point object |
X& |
X co-ordinate |
Y& |
Y co-ordinate |
X& = PointX&:(this&)
Returns the X co-ordinate from the point object..
this& |
A handle to a point object |
X& |
The X co-ordinate |
Y& = PointY&:(this&)
Returns the Y co-ordinate from the point object..
this& |
A handle to a point object |
Y& |
The Y co-ordinate |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |