Arc

Sealed shape drawer that renders arc segments using the Shapes library. Contains the nested Arc readonly struct for storing arc parameters and the ArcEndCap enum. The constructor converts angles from degrees to radians and negates the normal and angles to match the Shapes library's coordinate convention.

Definition

Namespace: Paragon.Core.ShapesDrawer Assembly: Paragon.dll

public sealed class ArcDrawer : ShapeDrawer<ArcDrawer.Arc>

Inheritance: ShapeDrawer<Arc> → ArcDrawer

Methods

Add

Enqueues an arc for rendering this frame.

public void Add(Vector3 pivot, Vector3 normal, float startAngle, float endAngle, float radius, Color color, float thickness = 1f, ArcEndCap arcEndCap = ArcEndCap.NONE)
Parameter
Type
Default
Description

pivot

Vector3

Arc center position

normal

Vector3

Normal direction of the arc plane

startAngle

float

Start angle in degrees

endAngle

float

End angle in degrees

radius

float

Arc radius

color

Color

Arc color

thickness

float

1f

Thickness in pixels

arcEndCap

ArcEndCap

NONE

End cap style

Draw

Renders all queued arcs. Applies lineGeometry and thicknessSpace, then iterates the queue calling Shapes.Draw.Arc() for each entry.

Arc Struct

Readonly struct holding all parameters for a single arc draw call.

circle-info

The constructor negates the normal vector and converts angles from degrees to negated radians (-angle * Deg2Rad). This transforms from Paragon's convention (degrees, standard normal direction) to the Shapes library's internal convention.

ArcEndCap Enum

Paragon wrapper around the Shapes library's ArcEndCap enum.

See Also

Last updated