Module nwnlibd.geometry
Functions
Name | Description |
distance(line, point)
|
|
getAltitudeOnPlane(triangle, point)
|
|
getAltitudeOnPlane(normal, pointOnPlane, point)
|
|
getLineIntersection(lineA, lineB)
|
|
getSegmentIntersection(segA, segB)
|
|
isPointInsidePolygon(point, polygon)
|
|
isPointLeftOfLine(point, line)
|
|
isPolygonComplex(polygon)
|
Returns true if the polygon is complex (self intersecting)
Simple bruteforce method, O(n²) complexity
|
isTriangleClockwise(tri)
|
|
signedArea(a, b, c)
|
|
toVec2f(vector)
|
|
toVec3f(vector)
|
|
Structs
Name | Description |
Chains
|
Useful for assembling a multi-vertex line from 2-point segments
|