Simple3D
Search Results for

    Show / Hide Table of Contents

    Struct DrawTriangle

    A projected triangle for the legacy painter renderer.

    Implements
    IEquatable<DrawTriangle>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public readonly record struct DrawTriangle : IEquatable<DrawTriangle>

    Constructors

    | Edit this page View Source

    DrawTriangle(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 Source

    A

    First screen vertex.

    Declaration
    public Vector2 A { get; init; }
    Property Value
    Type Description
    Vector2
    | Edit this page View Source

    B

    Second screen vertex.

    Declaration
    public Vector2 B { get; init; }
    Property Value
    Type Description
    Vector2
    | Edit this page View Source

    C

    Third screen vertex.

    Declaration
    public Vector2 C { get; init; }
    Property Value
    Type Description
    Vector2
    | Edit this page View Source

    Color

    Packed ARGB color.

    Declaration
    public uint Color { get; init; }
    Property Value
    Type Description
    uint
    | Edit this page View Source

    Depth

    Mean view depth.

    Declaration
    public float Depth { get; init; }
    Property Value
    Type Description
    float

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX