Triangle3d
ReferencesRepresents a triangle, modeled using double three points that use double-precision floating point numbers.
Constructors
Properties
Gets the bounding box of this triangle.
Gets the perimeter of this triangle. This is the sum of the lengths of all edges.
Gets the perpendicular bisector for edge AB.
Gets the perpendicular bisector for edge BC.
Methods
Gets the projection of a point onto the barycentric coordinates.
Gets the parameter on the triangle boundary closest to a test point.
Parameters:
| point (Point3d) |
Gets the point on the triangle boundary closest to a test point.
Parameters:
| point (Point3d) |
Gets the point along the boundary of the triangle. The triangle boundary has a domain [0, 3] where each subsequent unit domain maps to a different edge.
Parameters:
| t (double) | Parameter along boundary. |
Gets a point within this triangle using barycentric coordinates.
Parameters:
| coords (Point2d) | Barycentric mass for vertex B and C. A is valued as (1 - B - C). |
Returns: Point at barycentric mass.
Gets the point on the triangle using the AB and AC primary axes.
Transform this triangle.
Parameters:
| transform (Transform) |
public static bool TrySmallestEnclosingTriangle(IEnumerable<Point2d> points, double tolerance, out Triangle3d triangle)
Attempt to create the smallest triangle containing a set of planar points.
Parameters:
| points (IEnumerable<Point2d>) | The points to enclose. |
| tolerance (double) | The tolerance to use |
| triangle (out Triangle3d) | The resulting triangle on success. |
Returns: true on success, false on failure.