Class Line3DExtensions
public static class Line3DExtensions
- Inheritance
-
Line3DExtensions
Methods
Color(ref Line3D, Color?)
Set the color for this Line3D.
public static ref Line3D Color(this ref Line3D @this, Color? color)
Parameters
Returns
Color(ref Line3D, Color?, Color?)
Set the color for this Line3D.
public static ref Line3D Color(this ref Line3D @this, Color? color1, Color? color2)
Parameters
Returns
FaceCamera(ref Line3D)
Make the visual always face the camera.
public static ref Line3D FaceCamera(this ref Line3D @this)
Parameters
thisLine3D
Returns
Facing(ref Line3D, Facing)
Defines the normal of the plane the line will be drawn on.
public static ref Line3D Facing(this ref Line3D @this, Facing facing)
Parameters
Returns
Position(ref Line3D, float3, float3)
Set the position for this Line3D.
public static ref Line3D Position(this ref Line3D @this, float3 p1, float3 p2)
Parameters
Returns
Ref(Line3D)
Returns a reference to the previously created Line3D 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<Line3D> Ref(this Line3D @this)
Parameters
thisLine3D
Returns
Rotation(ref Line3D, float)
Sets the facing rotation an degrees.
public static ref Line3D Rotation(this ref Line3D @this, float rotation)