wavelength 1.0.0
Loading...
Searching...
No Matches
sphere.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/plane.h"
4#include "math/vector3.h"
5#include "os/prnstream.h"
6
17class Sphere {
18public:
19 Vector3 mCenter; // +0x00
20 float mRadius; // +0x10
21};
22
32PrnStream &operator<<(PrnStream &stream, const Sphere &sphere);
33
47bool IntersectSegmentSphere(const Segment &segment, const Sphere &sphere, float *pflT);
Text output stream.
Definition prnstream.h:16
Bounding sphere.
Definition sphere.h:17
float mRadius
Definition sphere.h:20
Vector3 mCenter
Definition sphere.h:19
bool IntersectSegmentSphere(const Segment &segment, const Sphere &sphere, float *pflT)
Report whether the line through a segment passes within a sphere.
PrnStream & operator<<(PrnStream &stream, const Sphere &sphere)
Write a sphere's centre and radius on a tab-indented line.
Two points that fix a line or a segment.
Definition plane.h:39
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14