MPMA Framework 0.4
Namespaces | Functions
GeoIntersect.h File Reference

A few simple geometry intersection functions. More...

Go to the source code of this file.

Namespaces

namespace  GEO
 

Geometry library.


namespace  GEO::INTERSECT
 

Intersection detection.


namespace  GEO::RESOLVE
 

Collision resolution.


Functions

bool GEO::INTERSECT::LinePlane (const Line &inLine, const Plane &inPlane, Vector3 &outPoint)
 line and plane intersection
bool GEO::INTERSECT::LinePlane (const Line &inLine, const Plane &inPlane)
 line and plane intersection
bool GEO::INTERSECT::LineSphere (const Line &inLine, const Sphere &inSphere, Vector3 &outPoint1, Vector3 &outPoint2)
 line and sphere
bool GEO::INTERSECT::LineSphere (const Line &inLine, const Sphere &inSphere)
 line and sphere
bool GEO::INTERSECT::RaySphere (const Line &inLine, const Sphere &inSphere)
 ray and sphere
bool GEO::INTERSECT::LineYAlignedEllipsoid (const Line &inLine, const YAlignedEllipsoid &inEllipse, Vector3 &outPoint1, Vector3 &outPoint2)
 line and y-axis-aligned ellipsoid
bool GEO::INTERSECT::RayYAlignedEllipsoid (const Line &inLine, const YAlignedEllipsoid &inEllipse)
 ray and y-axis-aligned ellipsoid
bool GEO::INTERSECT::LineAARectoid (const Line &inLine, const AARectoid &rect, Vector3 &outPoint1, Vector3 &outNormal1, Vector3 &outPoint2, Vector3 &outNormal2)
 line and axis aligned 3d rectangle
bool GEO::INTERSECT::LineXAlignedUnboundedCylinder (const Line &inLine, const XAlignedUnboundedCylinder &inCyl, Vector3 &outPoint1, Vector3 &outPoint2)
 line and axis aligned unbounded cylinder
Vector3 GEO::INTERSECT::NormalFromIntersection (const Vector3 &isect, const XAlignedUnboundedCylinder &inCyl)
 line and axis aligned unbounded cylinder
bool GEO::INTERSECT::RayXAlignedUnboundedCylinder (const Line &inLine, const XAlignedUnboundedCylinder &inCyl)
 ray and x-axis-aligned unbounded cylinder
bool GEO::INTERSECT::CircleCircle (const Circle &inCircle1, const Circle &inCircle2)
 circle and circle
bool GEO::INTERSECT::Line2DSegmentCircle (const Line2D &inLine, const Circle &inCircle, GEO::Vector2 &outPos)
 line segment and circle
bool GEO::RESOLVE::CircleEqualMass (const GEO::Vector2 &pos1, const GEO::Vector2 &vel1, const GEO::Vector2 &pos2, const GEO::Vector2 &vel2, GEO::Vector2 &outVel1, GEO::Vector2 &outVel2)
 resolves a collision between two round objects of equal mass (circle or sphere)
bool GEO::RESOLVE::CircleDifferentMass (const GEO::Vector2 &pos1, const GEO::Vector2 &vel1, float mass1, const GEO::Vector2 &pos2, const GEO::Vector2 &vel2, float mass2, GEO::Vector2 &outVel1, GEO::Vector2 &outVel2)
 resolves a collision between two round objects of equal mass (circle or sphere)

Detailed Description

A few simple geometry intersection functions.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends