Struct DrawTriangle
A projected triangle for the legacy painter renderer.
Implements
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public readonly record struct DrawTriangle : IEquatable<DrawTriangle>
Constructors
| Edit this page View SourceDrawTriangle(Vector2, Vector2, Vector2, float, uint)
A projected triangle for the legacy painter renderer.
Declaration
public DrawTriangle(Vector2 A, Vector2 B, Vector2 C, float Depth, uint Color)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | A | First screen vertex. |
| Vector2 | B | Second screen vertex. |
| Vector2 | C | Third screen vertex. |
| float | Depth | Mean view depth. |
| uint | Color | Packed ARGB color. |
Properties
| Edit this page View SourceA
First screen vertex.
Declaration
public Vector2 A { get; init; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
B
Second screen vertex.
Declaration
public Vector2 B { get; init; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
C
Third screen vertex.
Declaration
public Vector2 C { get; init; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Color
Packed ARGB color.
Declaration
public uint Color { get; init; }
Property Value
| Type | Description |
|---|---|
| uint |
Depth
Mean view depth.
Declaration
public float Depth { get; init; }
Property Value
| Type | Description |
|---|---|
| float |