Shane Hudson
Shane Hudson

Reputation: 719

What is thetaStart and thetaLength?

In Three.js's CircleGeometry class there are the parametres thetaStart and thetaLength. As far as I can tell they make the circle crinkled. What are they for and how do they work?

https://github.com/mrdoob/three.js/blob/master/src/extras/geometries/CircleGeometry.js

Upvotes: 0

Views: 970

Answers (1)

MvG
MvG

Reputation: 61027

These parameters can be used to describe a circle arc. The defaults are thetaStart=0 and thetaLength=2π, so they form a whole circle. A smaller value for thetaLength will describe only part of a circle, and you can use thetaStart to define the angle where that segment starts.

Upvotes: 3

Related Questions