Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
support_polygon.cpp File Reference
#include "momentum/math/support_polygon.h"
#include "momentum/common/exception.h"
#include "momentum/math/utility.h"
#include <algorithm>
#include <cmath>
#include <cstddef>

Go to the source code of this file.

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)
 Compute the 2D support polygon from world-space support points on the Y-up ground plane.
std::vector< Vector2f > momentum::computeSupportPolygonFromWorldPoints (std::span< const Vector3f > points, const SupportPlane &supportPlane)
 Compute the 2D support polygon from world-space support points.