Pie

Sealed shape drawer that renders filled pie (wedge) shapes using the Shapes library. Contains the nested Pie readonly struct for storing pie parameters. The constructor negates the normal and converts angles from degrees to negated radians to match the Shapes library's coordinate convention.

Definition

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

public sealed class PieDrawer : ShapeDrawer<PieDrawer.Pie>

Inheritance: ShapeDrawer<Pie> → PieDrawer

Methods

Add

Enqueues a pie for rendering this frame.

public void Add(Vector3 center, Vector3 normal, float startAngle, float endAngle, float radius, Color color)
Parameter
Type
Default
Description

center

Vector3

Pie center position

normal

Vector3

Normal direction of the pie plane

startAngle

float

Start angle in degrees

endAngle

float

End angle in degrees

radius

float

Pie radius

color

Color

Fill color

Draw

Renders all queued pies. Pushes style, iterates the queue calling Shapes.Draw.Pie() with DiscColors.Flat() for each entry, then pops style.

circle-exclamation

Pie Struct

Readonly struct holding all parameters for a single pie 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. This is the same convention used by ArcDrawer.

Common Pitfalls

circle-exclamation
circle-exclamation

Examples

Direct Usage via ShapesDrawer

Vision Cone Visualization

See Also

Last updated