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 Points.areInLine if you need better control over the actual tolerance distance.
|
|
|
Full Usage:
Tria2D.offsetPtVar (ptToOffset, prev, next, distPrev, distNext)
Parameters: Returns: ValueOption<Pt>
|
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. This function use Tria2D.offsetVarByNormals(..) internally.
|
Full Usage:
Tria2D.offsetPtVarByNormals (ptToOffset, prevN, nextN, prevDist, nextDist)
Parameters: Returns: ValueOption<Pt>
|
Finds the offset point based on the previous and next unit normals (= offset direction), and their offset distances. This is the core function for offsetting variable. it is used by Tria2D.offsetVar(..).
|
Euclid