All Frameworks  Object Hierarchy  This Framework  Indexes   

Circle2D (Object)

Class defining a circle in 2D Space.

Property Index

CenterPoint
Returns the center point of the circle.
Radius
Returns the radius of the circle

Method Index

GetCenter
Returns the center of the circle
SetData
Modifies the caracteristics of the circle

Properties


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

Methods


o 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
o 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

Copyright © 2003, Dassault Systèmes. All rights reserved.