Table of Contents

Class TriangleExtensions

public static class TriangleExtensions
Inheritance
TriangleExtensions

Methods

Color(ref Triangle, Color?)

Set the color for this Triangle.

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

Parameters

this Triangle
color Color?

Returns

Triangle

Color(ref Triangle, Color?, Color?, Color?)

Set the color for this Triangle.

public static ref Triangle Color(this ref Triangle @this, Color? color1, Color? color2, Color? color3)

Parameters

this Triangle
color1 Color?
color2 Color?
color3 Color?

Returns

Triangle

Position(ref Triangle, float3, float3, float3)

Set the position for this Triangle.

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

Parameters

this Triangle
p1 float3
p2 float3
p3 float3

Returns

Triangle

Ref(Triangle)

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

Parameters

this Triangle

Returns

VisualRef<Triangle>

SetDefault(ref Triangle)

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

Parameters

this Triangle

Returns

Triangle