﻿Triangle Methods

The Triangle type exposes the following members.

# Methods

NameDescription
ContainsOverloaded.
ContainsOnCircumference
Tests if a point lies on the circumference of the triangle.
DeepCopy
A deep copy of this instance.
Equals
Tests if two triangles are considered equal.
(Overrides Object..::.Equals(Object).)
GetBarycentricCoordinatesOfPoint
Computes the barycentric triangle coordinates alpha:beta:gamma belonging to a point.
GetHashCode
A hash code for this triangle.
(Overrides Object..::.GetHashCode()()().)
GetPlane
Gets the plane the triangle lies on.
GetPointFromBarycentricCoordinates
Computes a point from barycentric triangle coordinates alpha:beta:gamma.
GetPointFromTrilinearCoordinates
Computes a point from trilinear triangle coordinates alpha:beta:gamma.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
HasEdge
Tests if an edge is one of the edges of the triangle.
HasVertex
Tests if a point is one of the vertices of the triangle.
Intersect2dOverloaded.
Intersect3dOverloaded.
Intersects2dOverloaded.
Intersects3dOverloaded.
InvertNormalVector
Inverts the direction of the normal vector by swapping vertex 2 and vertex 3.
IsCoplanarToOverloaded.
IsParallelToOverloaded.
IsSimilarTo
Tests if two triangles are similar.
MoveOverloaded.
OppositeEdge
Returns the edge that is opposite to a given vertex.
OppositeVertex
Returns the vertex that is opposite to the given edge.
ProjectParallelOn
Computes the parallel projection of the triangle onto a plane.
RandomPointInTriangle
A random point in the triangle.
RandomTriangle
A random triangle.
ReflectInOverloaded.
RotateOverloaded.
Round
Rounds the coordinates of the vertices of the triangle.
ScaleOverloaded.
SharesEdgeWith
True if the triangle shares an edge with another triangle.
SharesVertexWith
Tests if the triangle shares at least one vertex with another triangle.
SliceOverloaded.
Sort
Sorts the triangles in a list by their coordinates.
ToString
Returns some properties of the triangle in StringNumberFormat-format.
(Overrides Object..::.ToString()()().)
TransformCoordinatesOverloaded.

# Operators

NameDescription
Equality
True if two triangles are considered equal.
Inequality
False if two triangles are considered equal.