Constructor
new CircleGeometry( radius : number, segments : number, thetaStart : number, thetaLength : number )
Constructs a new circle geometry.
| radius |
Radius of the circle. Default is |
| segments |
Number of segments (triangles), minimum = Default is |
| thetaStart |
Start angle for first segment in radians. Default is |
| thetaLength |
The central angle, often called theta, of the circular sector in radians. The default value results in a complete circle. Default is |
Properties
.parameters : Object
Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.
Static Methods
.fromJSON( data : Object ) : CircleGeometry
Factory method for creating an instance of this class from the given JSON object.
| data |
A JSON object representing the serialized geometry. |
- Returns: A new instance.