Giga Geometry Implementation
This commit is contained in:
@@ -39,6 +39,8 @@ namespace J3ML::Geometry {
|
||||
return aabb;
|
||||
}
|
||||
|
||||
bool Intersects(const LineSegment &lineSegment) const;
|
||||
|
||||
Sphere MinimalEnclosingSphere() const;
|
||||
Sphere MaximalContainedSphere() const;
|
||||
Vector3 Size() const;
|
||||
@@ -53,7 +55,7 @@ namespace J3ML::Geometry {
|
||||
Vector3 CenterPoint() const;
|
||||
Vector3 Centroid() const;
|
||||
|
||||
Vector3 AnyPointFast() const;
|
||||
Vector3 AnyPointFast() const { return pos; }
|
||||
|
||||
float Volume() const;
|
||||
float SurfaceArea() const;
|
||||
@@ -96,5 +98,9 @@ namespace J3ML::Geometry {
|
||||
void SetFrom(const AABB &aabb, const Quaternion &transform);
|
||||
|
||||
bool Intersects(const Plane& plane) const;
|
||||
|
||||
Matrix4x4 LocalToWorld() const;
|
||||
|
||||
Matrix4x4 WorldToLocal() const;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user