Table of Contents

Class AxisExtensions

public static class AxisExtensions
Inheritance
AxisExtensions

Methods

Color(ref Axis, Color?)

Set the color for this Axis.

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

Parameters

this Axis
color Color?

Returns

Axis

Color(ref Axis, Color, Color, Color)

Set the color for this Axis.

public static ref Axis Color(this ref Axis @this, Color colorX, Color colorY, Color colorZ)

Parameters

this Axis
colorX Color
colorY Color
colorZ Color

Returns

Axis

Orientation(ref Axis, Orientation)

The orientation of the axis.

public static ref Axis Orientation(this ref Axis @this, Orientation orientation)

Parameters

this Axis
orientation Orientation

Returns

Axis

Position(ref Axis, float3)

Set the position for this Axis.

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

Parameters

this Axis
position float3

Returns

Axis

Ref(Axis)

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

Parameters

this Axis

Returns

VisualRef<Axis>

SetDefault(ref Axis)

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

Parameters

this Axis

Returns

Axis

Side(ref Axis, AxisSide)

Controls whether an Axis points in bother directions from its center point, only in the positive, or only in the negative direction.

public static ref Axis Side(this ref Axis @this, AxisSide side)

Parameters

this Axis
side AxisSide

Returns

Axis

Size(ref Axis, float3)

The size of the axis.

public static ref Axis Size(this ref Axis @this, float3 size)

Parameters

this Axis
size float3

Returns

Axis