Calculates the area of the triangle determined by three vertices when projected onto a specific plane. Uses Gauss' shoelace formula.
The first triangle vertex.
The second triangle vertex.
The third triangle vertex.
The first coordinate of the projection plane.
The second coordinate of the projection plane.
The area of the triangle when projected onto the plane.
Calculates the intersection of two segments. Assumes that these segments are coplanar, but not collinear. Ignores the intersection if it lies outside of the segments, or "too close" to the endpoints.
The first endpoint of the first segment.
The second endpoint of the first segment.
The first endpoint of the second segment.
The second endpoint of the second segment.
The intersection point of segments ab
and cd
, or null
if there's none.
Checks if two lines are "approximately" parallel.
The first coordinate.
The second coordinate.
The third coordinate.
The fourth coordinate.
Whether the line from (0, 0) to (a, b) and the line from (0, 0) to (c, d) have neglibly different slopes.
Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM
Contains methods to do operations on points.