C# Class StarWarrior.Primitives.Triangle

Show file Open project: thelinuxlich/starwarrior_CSharp

Public Methods

Method Description
AddTriangle ( float x1, float y1, float x2, float y2, float x3, float y3 ) : void

The add triangle.

Draw ( Vector2 transform ) : void

Draws the specified transform.

Triangle ( PrimitiveBatch primitiveBatch ) : System.Collections.Generic

Initializes a new instance of the Triangle class.

Method Details

AddTriangle() public method

The add triangle.
public AddTriangle ( float x1, float y1, float x2, float y2, float x3, float y3 ) : void
x1 float The x 1.
y1 float The y 1.
x2 float The x 2.
y2 float The y 2.
x3 float The x 3.
y3 float The y 3.
return void

Draw() public method

Draws the specified transform.
public Draw ( Vector2 transform ) : void
transform Vector2 The transform.
return void

Triangle() public method

Initializes a new instance of the Triangle class.
public Triangle ( PrimitiveBatch primitiveBatch ) : System.Collections.Generic
primitiveBatch PrimitiveBatch The primitive batch.
return System.Collections.Generic