Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
568 B
C++
26 lines
568 B
C++
#pragma once
|
|
|
|
#include "point3d.h"
|
|
|
|
class Plane;
|
|
|
|
class Sphere SIGNATURED
|
|
{
|
|
public:
|
|
Point3D center;
|
|
Scalar radius;
|
|
|
|
Sphere() {}
|
|
Sphere(const Point3D &A_Point, Scalar Radius) : center(A_Point), radius(Radius) {}
|
|
Sphere(Scalar X, Scalar Y, Scalar Z, Scalar Radius) : center(X,Y,Z), radius(Radius) {}
|
|
|
|
//
|
|
// Intersection functions
|
|
//
|
|
Logical Contains(const Point3D &point) const;
|
|
Logical Intersects(const Sphere &sphere) const;
|
|
Logical Intersects(const Plane &plane) const;
|
|
|
|
friend std::ostream& operator<<(std::ostream& Stream, const Sphere &A_Sphere);
|
|
};
|