Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
support_polygon.h File Reference
#include <momentum/math/types.h>
#include <span>
#include <vector>

Go to the source code of this file.

Classes

struct  momentum::SupportPlaneT< T >
 Oriented plane used to classify support contacts and project support polygons. More...

Namespaces

namespace  momentum

Functions

float momentum::cross2d (const Vector2f &origin, const Vector2f &a, const Vector2f &b)
 Compute the signed 2D cross product of vectors from an origin.
std::vector< Vector2f > momentum::computeConvexHull2d (std::span< const Vector2f > points)
 Compute the convex hull of 2D support points.
std::vector< Vector2f > momentum::computeSupportPolygonFromWorldPoints (std::span< const Vector3f > points, const SupportPlane &supportPlane)
 Compute the 2D support polygon from world-space support points.
std::vector< Vector2f > momentum::computeSupportPolygonFromWorldPoints (std::span< const Vector3f > points)
 Compute the 2D support polygon from world-space support points on the Y-up ground plane.