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
BottomRight
The bottom right point of this triangle
public Vector2 BottomRight { get; set; }
Property Value
Color
The color of this rectangle
public Color Color { get; set; }
Property Value
Top
The top point of this triangle
public Vector2 Top { get; set; }
Property Value
Methods
Draw(ICanvas2D)
Draws this rectangle using the specified renderer
public override void Draw(ICanvas2D renderer)
Parameters
rendererICanvas2D