Circle2D (Object)

Class defining a circle in 2D Space.

Properties


Property CenterPoint() As
Returns the center point of the circle.
Parameters:
oCenterPoint
The center point of the circle
Property Radius() As (Read Only)
Returns the radius of the circle
Parameters:
oRadius
The radius of the circle

Methods


Sub GetCenter( oData)
Returns the center of the circle
Parameters:
oData[0]
The X Coordinate of the circle center point
oData[1]
The Y Coordinate of the circle center point
Example:
The following example reads the coordinates of the center
of the circle myCircle: double center(1) myCircle.GetCenter center
 
Sub SetData( iCenterX, iCenterY, iRadius)
Modifies the caracteristics of the circle
Parameters:
iCenterX
The X Coordinate of the circle center
iCenterY
The Y Coordinate of the circle center
iRadius
The radius of the circle