A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Kinoko::EGG::Sphere3f Struct Reference

#include <Sphere.hh>

Description

Represents a sphere in 3D space.

Definition at line 8 of file Sphere.hh.

Public Member Functions

constexpr Sphere3f (const Vector3f &v, f32 r)
 
constexpr bool isInsideOtherSphere (const Sphere3f &rhs) const
 Not actually part of EGG. Included here for compartmentalization.
 

Public Attributes

Vector3f pos
 
f32 radius
 

Constructor & Destructor Documentation

◆ Sphere3f()

Kinoko::EGG::Sphere3f::Sphere3f ( const Vector3f & v,
f32 r )
inlineconstexpr

Definition at line 9 of file Sphere.hh.

Member Function Documentation

◆ isInsideOtherSphere()

bool Kinoko::EGG::Sphere3f::isInsideOtherSphere ( const Sphere3f & rhs) const
inlinenodiscardconstexpr0x8051A07C

Not actually part of EGG. Included here for compartmentalization.

Returns
True if this sphere is completely inside rhs.

Definition at line 14 of file Sphere.hh.

Member Data Documentation

◆ pos

Vector3f Kinoko::EGG::Sphere3f::pos

Definition at line 23 of file Sphere.hh.

◆ radius

f32 Kinoko::EGG::Sphere3f::radius

Definition at line 24 of file Sphere.hh.