Donate Donating to nape helps push me to keep on making it better!
Index | Donators | Forums | Project Page
Loading
nape.shape.Circle class
Top | Properties | Constructor | Methods | Statics

Package nape.shape
Class Circle
Inheritance Circle -> Shape -> Interactor

Circle shape type



Public Properties
Property Defined By
radius : Float
Circle radius
Circle

Constructor
Constructor
new(radius:Float, ?localCOM:const Vec2, ?material:Material, ?filter:InteractionFilter)
Construct a new Circle

Public Methods

Public Static Methods
Method Defined By
static copy(circle:const Circle) : Circle
Produce deep* copy of Circle
Circle

Property Detail
radius property
property radius : Float

Radius of circle

Error on setter if:
X    radius <= epsilon


Constructor Detail
function new(radius:Float, ?localCOM:const Vec2, ?material:Material, ?filter:InteractionFilter)

Construct Circle with given radius, local centre of mass, material and filter.

● localCOM defaults to (0,0)
● material defaults to new Material()
● filter defaults to new InteractionFilter()


Static Method Detail
copy static method
static function copy(circle:const Circle) : Circle



Error if:
X    circle==null

See Also