Constructs a triangle from three points.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public Triangle(
	Point point1,
	Point point2,
	Point point3,
	bool checkDegenerate
)
Visual Basic (Declaration)
Public Sub New ( _
	point1 As Point, _
	point2 As Point, _
	point3 As Point, _
	checkDegenerate As Boolean _
)
Visual C++
public:
Triangle(
	Point^ point1, 
	Point^ point2, 
	Point^ point3, 
	bool checkDegenerate
)

Parameters

point1
Type: ceometric.VectorGeometry..::.Point
The first vertex.
point2
Type: ceometric.VectorGeometry..::.Point
The second vertex.
point3
Type: ceometric.VectorGeometry..::.Point
The third vertex.
checkDegenerate
Type: System..::.Boolean
Checks if the triangle is degenerate if set to true, false otherwise.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThe points are collinear. This exception is only thrown if checkDegenerate is set to true.

See Also