C# Class StdPaint.Triangle2f

Represents a set of three two-dimensional floating-point vectors.
Show file Open project: TheBerkin/StdPaint

Public Properties

Property Type Description
A Vector2
B Vector2
C Vector2

Public Methods

Method Description
GetArea ( Vector2 a, Vector2 b, Vector2 c ) : double

Returns the area of the triangle made from the specified vectors.

Triangle2f ( Vector2 a, Vector2 b, Vector2 c ) : System

Initializes a new instance of the StdPaint.Trangle2f structure with the specified vectors.

Method Details

GetArea() public static method

Returns the area of the triangle made from the specified vectors.
public static GetArea ( Vector2 a, Vector2 b, Vector2 c ) : double
a Vector2 The first point.
b Vector2 The second point.
c Vector2 The third point.
return double

Triangle2f() public method

Initializes a new instance of the StdPaint.Trangle2f structure with the specified vectors.
public Triangle2f ( Vector2 a, Vector2 b, Vector2 c ) : System
a Vector2 The first vector.
b Vector2 The second vector.
c Vector2 The third vector.
return System

Property Details

A public property

The first vector.
public Vector2 A
return Vector2

B public property

The second vector.
public Vector2 B
return Vector2

C public property

The third vector.
public Vector2 C
return Vector2