Table of Contents

Class PuncturedPolyBoard

Namespace
RichHudFramework.UI.Rendering
Assembly
RichHudClient.dll

Renders a circular 2D polygon (annulus) using billboards with the center removed. Geometry is constructed as a strip of quads connecting an inner and outer ring.

public class PuncturedPolyBoard : PolyBoard
Inheritance
PuncturedPolyBoard
Inherited Members

Constructors

PuncturedPolyBoard()

public PuncturedPolyBoard()

Properties

InnerRadius

The radius of the inner hole as a normalized fraction of the outer radius. Range: 0.0 (solid circle) to 1.0 (infinitely thin ring).

public float InnerRadius { get; set; }

Property Value

float

Methods

Draw(Vector2, Vector2, Vector2I, MatrixD[])

Draws the given range of faces (quads) along the ring.

public override void Draw(Vector2 size, Vector2 origin, Vector2I faceRange, MatrixD[] matrixRef)

Parameters

size Vector2
origin Vector2
faceRange Vector2I
matrixRef MatrixD[]

GetSliceOffset(Vector2, Vector2I)

Returns the center position of the given slice relative to the center of the billboard. Approximates the centroid of the quad strip defined by the range.

public override Vector2 GetSliceOffset(Vector2 bbSize, Vector2I range)

Parameters

bbSize Vector2
range Vector2I

Returns

Vector2