Table of Contents

Class Triangle2D

Namespace
AstraEngine.Canvas2D
Assembly
AstraEngine.Canvas2D.dll

Represents a Rectangle that can be drawn in 2D space

public class Triangle2D : Drawable
Inheritance
Triangle2D
Inherited Members

Properties

BottomLeft

The bottom left point of this rectangle

public Vector2 BottomLeft { get; set; }

Property Value

Vector2

BottomRight

The bottom right point of this triangle

public Vector2 BottomRight { get; set; }

Property Value

Vector2

Color

The color of this rectangle

public Color Color { get; set; }

Property Value

Color

Top

The top point of this triangle

public Vector2 Top { get; set; }

Property Value

Vector2

Methods

Draw(ICanvas2D)

Draws this rectangle using the specified renderer

public override void Draw(ICanvas2D renderer)

Parameters

renderer ICanvas2D