Table of Contents

Class WedgeExtensions

public static class WedgeExtensions
Inheritance
WedgeExtensions

Methods

Angle1(ref Wedge, float)

The starting angle.

public static ref Wedge Angle1(this ref Wedge @this, float angle1)

Parameters

this Wedge
angle1 float

Returns

Wedge

Angle2(ref Wedge, float)

The ending angle.

public static ref Wedge Angle2(this ref Wedge @this, float angle2)

Parameters

this Wedge
angle2 float

Returns

Wedge

AutoResolution(ref Wedge)

Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.

public static ref Wedge AutoResolution(this ref Wedge @this)

Parameters

this Wedge

Returns

Wedge

Color(ref Wedge, Color?)

Set the color for this Wedge.

public static ref Wedge Color(this ref Wedge @this, Color? color)

Parameters

this Wedge
color Color?

Returns

Wedge

Color(ref Wedge, Color?, Color?)

Set the color for this Wedge.

public static ref Wedge Color(this ref Wedge @this, Color? color1, Color? color2)

Parameters

this Wedge
color1 Color?
color2 Color?

Returns

Wedge

FaceCamera(ref Wedge)

Make the visual always face the camera.

public static ref Wedge FaceCamera(this ref Wedge @this)

Parameters

this Wedge

Returns

Wedge

Facing(ref Wedge, Facing)

The wedge's plane will be perpendicular to this vector.
Defaults to the global Facing value.

public static ref Wedge Facing(this ref Wedge @this, Facing facing)

Parameters

this Wedge
facing Facing

Returns

Wedge

InnerRadius(ref Wedge, float2)

The wedge's inner radius.

public static ref Wedge InnerRadius(this ref Wedge @this, float2 innerRadius)

Parameters

this Wedge
innerRadius float2

Returns

Wedge

Position(ref Wedge, float3)

Set the position for this Wedge.

public static ref Wedge Position(this ref Wedge @this, float3 position)

Parameters

this Wedge
position float3

Returns

Wedge

Radius(ref Wedge, float2)

The wedge's radius.

public static ref Wedge Radius(this ref Wedge @this, float2 radius)

Parameters

this Wedge
radius float2

Returns

Wedge

Ref(Wedge)

Returns a reference to the previously created Wedge visual.
If you need to keep a reference to a long-lived visual, this will allow you to modify or delete the visual at some point in the future.

Important: only use this directly after creating a visual, as it may not be valid beyond that.

public static VisualRef<Wedge> Ref(this Wedge @this)

Parameters

this Wedge

Returns

VisualRef<Wedge>

Resolution(ref Wedge, byte)

How many segments the wedge is rendered with.
This represents the number of segments of a full 360 degree wedge, e.g. a 180 wedge with a resolution set to 32 will be drawn with 16 segments, and a 90 degree wedge with 8 segments.

3 = triangular, 4 = square, and more is circular.
Set to 0 for a circular shape with automatic resolution based on the distance to the camera.

public static ref Wedge Resolution(this ref Wedge @this, byte resolution)

Parameters

this Wedge
resolution byte

Returns

Wedge

Rotation(ref Wedge, float)

Sets the facing rotation an degrees.

public static ref Wedge Rotation(this ref Wedge @this, float rotation)

Parameters

this Wedge
rotation float

Returns

Wedge

SetDefault(ref Wedge)

public static ref Wedge SetDefault(this ref Wedge @this)

Parameters

this Wedge

Returns

Wedge