Pass:circle

Edit

Draws a circle.




Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the circle.
ynumber0 The y coordinate of the center of the circle.
znumber0 The z coordinate of the center of the circle.
radiusnumber1 The radius of the circle.
anglenumber0 The rotation of the circle around its rotation axis, in radians.
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.
styleDrawStyle'fill' Whether the circle should be filled or outlined.
angle1number0 The angle of the beginning of the arc.
angle2number2 * math.pi angle of the end of the arc.
segmentsnumber64 The number of segments to render.

Returns

Nothing

Arguments

NameTypeDefaultDescription
positionVec3 The position of the circle.
radiusnumber1 The radius of the circle.
orientationQuat The orientation of the circle.
styleDrawStyle'fill' Whether the circle should be filled or outlined.
angle1number0 The angle of the beginning of the arc.
angle2number2 * math.pi angle of the end of the arc.
segmentsnumber64 The number of segments to render.

Returns

Nothing

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the circle.
styleDrawStyle'fill' Whether the circle should be filled or outlined.
angle1number0 The angle of the beginning of the arc.
angle2number2 * math.pi angle of the end of the arc.
segmentsnumber64 The number of segments to render.

Returns

Nothing

Notes

The local origin of the circle is in its center. The local z axis is perpendicular to the circle.

See also