Tria2D Type
A type containing only static member functions for operations on 2D Triangles.
Static members
| Static member |
Description
|
|
|
|
|
|
|
|
|
|
|
|
Checks if three points are in one line. This is a very fast check, but it is hard to find an appropriate tolerance. (Default is 0.001) This tolerance is the area of the parallelogram described by two vectors created from the 3 points. So it also returns TRUE if the points are equal or very close to each other. Returns FALSE for NaN input values. Use Tria2D.isLinear if you need better control over the actual tolerance distance. Uses the default maxAreaParallelogram of 0.001. Use Tria2D.isLinearFastWithin to set it.
|
|
Checks if three points are in one line. This is a very fast check, but it is hard to find an appropriate tolerance. The tolerance maxAreaParallelogram is the area of the parallelogram described by two vectors created from the 3 points. So it also returns TRUE if the points are equal or very close to each other. Returns FALSE for NaN input values. Use Tria2D.isLinearWithin if you need better control over the actual tolerance distance. Use Tria2D.isLinearFast for the default tolerance of 0.001.
|
|
Checks if three points are in one line. By finding the biggest angle in the triangle. And then measuring the distance from this point to the line defined by the other two points. Returns TRUE if this distance is less than distanceTolerance, or if two points are closer than distanceTolerance. Use Tria2D.isLinear for the default distanceTolerance of 1e-6.
|
|
|
Finds the offset point based on the previous and next points, and their offset distances. A positive offset distance will be to the left side of the line from 'prev' to 'ptToOffset'. A negative offset distance inverts the direction. Fails if the three points are collinear, unless they go in the same direction and the distances are equal. Use Tria2D.tryOffsetPtVar to get ValueNone instead.
|
|
Finds the offset point based on the previous and next unit normals (= offset direction), and their offset distances. Fails if the two normals are parallel, unless they point in the same direction and the distances are equal. Use Tria2D.tryOffsetPtVarByNormals to get ValueNone instead.
|
|
Finds the offset point based on the previous and next points, and their offset distances. A positive offset distance will be to the left side of the line from 'prev' to 'ptToOffset'. A negative offset distance inverts the direction. Returns ValueNone if the three points are collinear, unless they go in the same direction and the distances are equal. This function uses Tria2D.tryOffsetPtVarByNormals(..) internally.
|
|
Finds the offset point based on the previous and next unit normals (= offset direction), and their offset distances. Returns ValueNone if the two normals are parallel, unless they point in the same direction and the distances are equal. This is the core function for offsetting variable. it is used by Tria2D.tryOffsetPtVar(..).
|
Euclid