Table of Contents

Class ArcExtensions

public static class ArcExtensions
Inheritance
ArcExtensions

Methods

Angle1(ref Arc, float)

The starting angle.

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

Parameters

this Arc
angle1 float

Returns

Arc

Angle2(ref Arc, float)

The ending angle.

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

Parameters

this Arc
angle2 float

Returns

Arc

AutoResolution(ref Arc)

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

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

Parameters

this Arc

Returns

Arc

Color(ref Arc, Color?)

Set the color for this Arc.

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

Parameters

this Arc
color Color?

Returns

Arc

Color(ref Arc, Color?, Color?)

Set the color for this Arc.

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

Parameters

this Arc
color1 Color?
color2 Color?

Returns

Arc

FaceCamera(ref Arc)

Make the visual always face the camera.

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

Parameters

this Arc

Returns

Arc

Facing(ref Arc, Facing)

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

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

Parameters

this Arc
facing Facing

Returns

Arc

Position(ref Arc, float3)

Set the position for this Arc.

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

Parameters

this Arc
position float3

Returns

Arc

Radius(ref Arc, float2)

The arc's radius.

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

Parameters

this Arc
radius float2

Returns

Arc

Ref(Arc)

Returns a reference to the previously created Arc 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<Arc> Ref(this Arc @this)

Parameters

this Arc

Returns

VisualRef<Arc>

Resolution(ref Arc, byte)

How many segments the arc is rendered with.
This represents the number of segments of a full 360 degree arc, e.g. a 180 arc with a resolution set to 32 will be drawn with 16 segments, and a 90 degree arc 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 Arc Resolution(this ref Arc @this, byte resolution)

Parameters

this Arc
resolution byte

Returns

Arc

Rotation(ref Arc, float)

Sets the facing rotation an degrees.

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

Parameters

this Arc
rotation float

Returns

Arc

SetDefault(ref Arc)

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

Parameters

this Arc

Returns

Arc