Open 3D Engine AzCore API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Sphere Class Reference

A simple bounding sphere class for fast intersection testing. More...

#include <Sphere.h>

Public Member Functions

 AZ_TYPE_INFO (Sphere, "{34BB6527-81AE-4854-99ED-D1A319DCD0A9}")
 
 Sphere (const Vector3 &center, float radius)
 
const Vector3GetCenter () const
 
float GetRadius () const
 
void SetCenter (const Vector3 &center)
 
void SetRadius (float radius)
 
void Set (const Sphere &sphere)
 
bool operator== (const Sphere &rhs) const
 
bool operator!= (const Sphere &rhs) const
 

Static Public Member Functions

static Sphere CreateUnitSphere ()
 
static Sphere CreateFromAabb (const Aabb &aabb)
 

Detailed Description

A simple bounding sphere class for fast intersection testing.

Member Function Documentation

◆ Set()

AZ_MATH_INLINE void AZ::Sphere::Set ( const Sphere sphere)
Deprecated:
can be set through an assignment

The documentation for this class was generated from the following files: