Skip to content

Latest commit

 

History

56 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UFOGeometry

The UFO geometry library

✔: means implemented
✖: not implemented
✔*: implemented but wrong

AABC is the same as AABB but equal sized

Intersection test

Supports intersection test between

AABB Capsule Circle Cone Cylinder Ellipsoid Frustum Line Segment OBB Plane Point Ray Rectangle Sphere Triangle
AABB ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
Capsule ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Circle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Cone ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Cylinder ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Ellipsoid ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Frustum ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✖ ✔ ✖ ✖ ✔ ✖
Line Segment ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✖ ✖ ✔ ✖
OBB ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔* ✔ ✖ ✔ ✖
Plane ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✖ ✔ ✔ ✔ ✖ ✔ ✖
Point ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔* ✔ ✔ ✔ ✖ ✔ ✖
Ray ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✖ ✖ ✔ ✖
Rectangle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Sphere ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✖
Triangle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖

Contains test

Supports contains test between

AABB Capsule Circle Cone Cylinder Ellipsoid Frustum Line Segment OBB Plane Point Ray Rectangle Sphere Triangle
AABB ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
Capsule ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Circle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Cone ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Cylinder ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Ellipsoid ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Frustum ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✖ ✔ ✖ ✖ ✔ ✖
Line Segment ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✖ ✖ ✔ ✖
OBB ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔* ✔ ✖ ✔ ✖
Plane ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✖ ✔ ✔ ✔ ✖ ✔ ✖
Point ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔* ✔ ✔ ✔ ✖ ✔ ✖
Ray ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✖ ✖ ✔ ✖
Rectangle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Sphere ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✖
Triangle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖

Minimum distance

Supports calculating minimum distance between

AABB Capsule Circle Cone Cylinder Ellipsoid Frustum Line Segment OBB Plane Point Ray Rectangle Sphere Triangle
AABB ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
Capsule ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Circle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Cone ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Cylinder ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Ellipsoid ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Frustum ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✖ ✔ ✖ ✖ ✔ ✖
Line Segment ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✖ ✖ ✔ ✖
OBB ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔* ✔ ✖ ✔ ✖
Plane ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✖ ✔ ✔ ✔ ✖ ✔ ✖
Point ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔* ✔ ✔ ✔ ✖ ✔ ✖
Ray ✔ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✖ ✖ ✔ ✖
Rectangle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖
Sphere ✔ ✖ ✖ ✖ ✖ ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✖
Triangle ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖ ✖

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages