Skip to main content

GeometryHelperMethods

A static class in Root.Township, Alta.Utilities.

Point and segment tests on the XZ plane (Y is ignored).

Methods​

MemberWhat it is
static bool IsPointInsidePolygonXZ(Vector3 position, IList<Vector3> polygonVertices)Whether a point is inside a polygon on the XZ plane, by ray casting. A point on an edge counts as inside.
3 private and internal methods
MemberWhat it is
private static bool AreIntersecting(Line line1, Line line2)Whether two segments cross on the XZ plane, counting touching ends.
private static GeometryHelperMethods.Orientation IntersectionOrientation(Line line, Vector3 c)Whether a point is clockwise, anticlockwise or collinear relative to a line on the XZ plane.
private static bool IsColinearPointOnLine(Line line, Vector3 point)Whether a point already known to be collinear lies within the segment's XZ bounds.