C# Class StdPaint.Triangle

Represents a set of three points.
Afficher le fichier Open project: TheBerkin/StdPaint Class Usage Examples

Méthodes publiques

Свойство Type Description
A Point
B Point
C Point

Méthodes publiques

Méthode Description
GetArea ( Point a, Point b, Point c ) : double

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

GetBounds ( ) : Rectangle

Returns a Rectangle that represents the bounding box of this Triangle.

Triangle ( Point a, Point b, Point c ) : System

Initializes a new instance of the Triangle struct with the supplied coordinates.

Method Details

GetArea() public static méthode

Returns the area of the triangle made from the specified points.
public static GetArea ( Point a, Point b, Point c ) : double
a Point The first point.
b Point The second point.
c Point The third point.
Résultat double

GetBounds() public méthode

Returns a Rectangle that represents the bounding box of this Triangle.
public GetBounds ( ) : Rectangle
Résultat Rectangle

Triangle() public méthode

Initializes a new instance of the Triangle struct with the supplied coordinates.
public Triangle ( Point a, Point b, Point c ) : System
a Point The first point.
b Point The second point.
c Point The third point.
Résultat System

Property Details

A public_oe property

The first point in the triangle.
public Point A
Résultat Point

B public_oe property

The second point in the triangle.
public Point B
Résultat Point

C public_oe property

The third point in the triangle.
public Point C
Résultat Point