Public Member Functions | Public Attributes | List of all members
IceMaths::Sphere Class Reference

#include <OPC_IceHook.h>

Public Member Functions

inline_ const PointCenter () const
 
BSphereMethod Compute (udword nb_verts, const Point *verts)
 
inline_ bool Contains (const Point &p) const
 
inline_ bool Contains (const Sphere &sphere) const
 
inline_ BOOL Contains (const AABB &aabb) const
 
bool FastCompute (udword nb_verts, const Point *verts)
 
inline_ const PointGetCenter () const
 
inline_ float GetRadius () const
 
inline_ bool Intersect (const Sphere &sphere) const
 
inline_ BOOL IsValid () const
 
inline_ float Radius () const
 
inline_ SphereSet (const Point &center, float radius)
 
inline_ SphereSetCenter (const Point &center)
 
inline_ SphereSetRadius (float radius)
 
inline_ Sphere ()
 Constructor. More...
 
inline_ Sphere (const Point &center, float radius)
 Constructor. More...
 
 Sphere (udword nb_verts, const Point *verts)
 Constructor. More...
 
inline_ Sphere (const Sphere &sphere)
 Copy constructor. More...
 
inline_ ~Sphere ()
 Destructor. More...
 

Public Attributes

Point mCenter
 Sphere center. More...
 
float mRadius
 Sphere radius. More...
 

Detailed Description

Definition at line 25 of file OPC_IceHook.h.

Constructor & Destructor Documentation

◆ Sphere() [1/4]

inline_ IceMaths::Sphere::Sphere ( )
inline

Constructor.

Definition at line 29 of file OPC_IceHook.h.

◆ Sphere() [2/4]

inline_ IceMaths::Sphere::Sphere ( const Point center,
float  radius 
)
inline

Constructor.

Definition at line 31 of file OPC_IceHook.h.

◆ Sphere() [3/4]

IceMaths::Sphere::Sphere ( udword  nb_verts,
const Point verts 
)

Constructor.

◆ Sphere() [4/4]

inline_ IceMaths::Sphere::Sphere ( const Sphere sphere)
inline

Copy constructor.

Definition at line 35 of file OPC_IceHook.h.

◆ ~Sphere()

inline_ IceMaths::Sphere::~Sphere ( )
inline

Destructor.

Definition at line 37 of file OPC_IceHook.h.

Member Function Documentation

◆ Center()

inline_ const Point& IceMaths::Sphere::Center ( ) const
inline

Definition at line 46 of file OPC_IceHook.h.

◆ Compute()

BSphereMethod IceMaths::Sphere::Compute ( udword  nb_verts,
const Point verts 
)

◆ Contains() [1/3]

inline_ bool IceMaths::Sphere::Contains ( const Point p) const
inline

Tests if a point is contained within the sphere.

Parameters
p[in] the point to test
Returns
true if inside the sphere

Definition at line 60 of file OPC_IceHook.h.

◆ Contains() [2/3]

inline_ bool IceMaths::Sphere::Contains ( const Sphere sphere) const
inline

Tests if a sphere is contained within the sphere.

Parameters
sphere[in] the sphere to test
Returns
true if inside the sphere

Definition at line 72 of file OPC_IceHook.h.

◆ Contains() [3/3]

inline_ BOOL IceMaths::Sphere::Contains ( const AABB aabb) const
inline

Tests if a box is contained within the sphere.

Parameters
aabb[in] the box to test
Returns
true if inside the sphere

Definition at line 88 of file OPC_IceHook.h.

◆ FastCompute()

bool IceMaths::Sphere::FastCompute ( udword  nb_verts,
const Point verts 
)

◆ GetCenter()

inline_ const Point& IceMaths::Sphere::GetCenter ( ) const
inline

Definition at line 43 of file OPC_IceHook.h.

◆ GetRadius()

inline_ float IceMaths::Sphere::GetRadius ( ) const
inline

Definition at line 44 of file OPC_IceHook.h.

◆ Intersect()

inline_ bool IceMaths::Sphere::Intersect ( const Sphere sphere) const
inline

Tests if the sphere intersects another sphere

Parameters
sphere[in] the other sphere
Returns
true if spheres overlap

Definition at line 120 of file OPC_IceHook.h.

◆ IsValid()

inline_ BOOL IceMaths::Sphere::IsValid ( ) const
inline

Checks the sphere is valid.

Returns
true if the box is valid

Definition at line 132 of file OPC_IceHook.h.

◆ Radius()

inline_ float IceMaths::Sphere::Radius ( ) const
inline

Definition at line 47 of file OPC_IceHook.h.

◆ Set()

inline_ Sphere& IceMaths::Sphere::Set ( const Point center,
float  radius 
)
inline

Definition at line 49 of file OPC_IceHook.h.

◆ SetCenter()

inline_ Sphere& IceMaths::Sphere::SetCenter ( const Point center)
inline

Definition at line 50 of file OPC_IceHook.h.

◆ SetRadius()

inline_ Sphere& IceMaths::Sphere::SetRadius ( float  radius)
inline

Definition at line 51 of file OPC_IceHook.h.

Member Data Documentation

◆ mCenter

Point IceMaths::Sphere::mCenter

Sphere center.

Definition at line 139 of file OPC_IceHook.h.

◆ mRadius

float IceMaths::Sphere::mRadius

Sphere radius.

Definition at line 140 of file OPC_IceHook.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:09