Table of Contents

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

this Line3D
color Color?

Returns

Line3D

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

this Line3D
color1 Color?
color2 Color?

Returns

Line3D

FaceCamera(ref Line3D)

Make the visual always face the camera.

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

Parameters

this Line3D

Returns

Line3D

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

this Line3D
facing Facing

Returns

Line3D

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

this Line3D
p1 float3
p2 float3

Returns

Line3D

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

this Line3D

Returns

VisualRef<Line3D>

Rotation(ref Line3D, float)

Sets the facing rotation an degrees.

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

Parameters

this Line3D
rotation float

Returns

Line3D

SetDefault(ref Line3D)

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

Parameters

this Line3D

Returns

Line3D

Width(ref Line3D, Size)

The width of the line.

public static ref Line3D Width(this ref Line3D @this, Size width)

Parameters

this Line3D
width Size

Returns

Line3D