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
Returns
Angle2(ref Arc, float)
The ending angle.
public static ref Arc Angle2(this ref Arc @this, float angle2)
Parameters
Returns
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
thisArc
Returns
Color(ref Arc, Color?)
Set the color for this Arc.
public static ref Arc Color(this ref Arc @this, Color? color)
Parameters
Returns
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
Returns
FaceCamera(ref Arc)
Make the visual always face the camera.
public static ref Arc FaceCamera(this ref Arc @this)
Parameters
thisArc
Returns
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
Returns
Position(ref Arc, float3)
Set the position for this Arc.
public static ref Arc Position(this ref Arc @this, float3 position)
Parameters
Returns
Radius(ref Arc, float2)
The arc's radius.
public static ref Arc Radius(this ref Arc @this, float2 radius)
Parameters
Returns
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
thisArc
Returns
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
Returns
Rotation(ref Arc, float)
Sets the facing rotation an degrees.
public static ref Arc Rotation(this ref Arc @this, float rotation)