Table of Contents

Class CylinderExtensions

public static class CylinderExtensions
Inheritance
CylinderExtensions

Methods

AutoResolution(ref Cylinder)

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

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

Parameters

this Cylinder

Returns

Cylinder

Color(ref Cylinder, Color?)

Set the color for this Cylinder.

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

Parameters

this Cylinder
color Color?

Returns

Cylinder

Position(ref Cylinder, float3, float3)

Set the position for this Cylinder.

public static ref Cylinder Position(this ref Cylinder @this, float3 p1, float3 p2)

Parameters

this Cylinder
p1 float3
p2 float3

Returns

Cylinder

Radius(ref Cylinder, float)

Set the radius for this Cylinder.

public static ref Cylinder Radius(this ref Cylinder @this, float radius)

Parameters

this Cylinder
radius float

Returns

Cylinder

Radius(ref Cylinder, float, float)

Set the radius for this Cylinder.

public static ref Cylinder Radius(this ref Cylinder @this, float radius1, float radius2)

Parameters

this Cylinder
radius1 float
radius2 float

Returns

Cylinder

Radius1(ref Cylinder, float)

The starting radius.

public static ref Cylinder Radius1(this ref Cylinder @this, float radius1)

Parameters

this Cylinder
radius1 float

Returns

Cylinder

Radius2(ref Cylinder, float)

The end radius.

public static ref Cylinder Radius2(this ref Cylinder @this, float radius2)

Parameters

this Cylinder
radius2 float

Returns

Cylinder

Ref(Cylinder)

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

Parameters

this Cylinder

Returns

VisualRef<Cylinder>

Resolution(ref Cylinder, byte)

The resolution of the end-cap circles. Set to 0 for an automatic resolution based on the distance to the camera.

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

Parameters

this Cylinder
resolution byte

Returns

Cylinder

Rotation(ref Cylinder, float)

Controls the orientation/rotation of the cylinder around its axis.

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

Parameters

this Cylinder
rotation float

Returns

Cylinder

SetDefault(ref Cylinder)

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

Parameters

this Cylinder

Returns

Cylinder