93 std::span<const Vector3f> points,
98 std::span<const Vector3f> points);
Vector2< float > Vector2f
SupportPlaneT< double > SupportPlaned
float cross2d(const Vector2f &origin, const Vector2f &a, const Vector2f &b)
Compute the signed 2D cross product of vectors from an origin.
std::vector< Vector2f > computeConvexHull2d(const std::span< const Vector2f > points)
Compute the convex hull of 2D support points.
SupportPlaneT< float > SupportPlane
std::vector< Vector2f > computeSupportPolygonFromWorldPoints(const std::span< const Vector3f > points)
Compute the 2D support polygon from world-space support points on the Y-up ground plane.
Oriented plane used to classify support contacts and project support polygons.
Vector3< T > projectPoint(const Vector3< T > &point) const
Return point projected orthogonally onto the plane.
Vector3< T > pointFromCoordinates(const Vector2< T > &point) const
Return the world-space point with the given 2D support-plane coordinates.
SupportPlaneT(const Vector3< T > &planeNormal=Vector3< T >::UnitY(), T planeOffset=T(0), const Vector3< T > &uAxisHint=Vector3< T >::UnitX())
Construct an oriented support plane and in-plane coordinate basis.
Vector3< T > origin() const
Return one world-space point on the plane, equal to normal * offset.
Vector2< T > coordinates(const Vector3< T > &point) const
Return 2D support-plane coordinates of point after projection.
T signedDistance(const Vector3< T > &point) const
Return normal.dot(point) - offset; negative values are below/behind the plane.