resonance 1.0.1
Loading...
Searching...
No Matches
sphere.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/vector3.h"
4
15class Sphere {
16public:
30 Sphere &GrowToContain(const Sphere &other);
31
43 static Sphere Circumscribe(const Vector3 &first, const Vector3 &second);
44
61 static Sphere Circumscribe(const Vector3 &first, const Vector3 &second, const Vector3 &third);
62
78 static Sphere Circumscribe(const Vector3 &first,
79 const Vector3 &second,
80 const Vector3 &third,
81 const Vector3 &fourth);
82
83 Vector3 mCenter; // +0x00
84 float mRadius; // +0x10
85};
Bounding sphere.
Definition sphere.h:15
float mRadius
Definition sphere.h:84
static Sphere Circumscribe(const Vector3 &first, const Vector3 &second)
Build the sphere whose diameter is the segment between two points.
static Sphere Circumscribe(const Vector3 &first, const Vector3 &second, const Vector3 &third, const Vector3 &fourth)
Build the sphere through four points.
Vector3 mCenter
Definition sphere.h:83
Sphere & GrowToContain(const Sphere &other)
Grow this sphere to the smallest sphere that encloses both it and other.
static Sphere Circumscribe(const Vector3 &first, const Vector3 &second, const Vector3 &third)
Build the sphere through three points, as the binary computes it.
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:12