C4 Engine
C4 Engine API Documentation

class Sphere3D

Defined in:  TSSphere3D.h
The Sphere3D class encapsulates a 3D sphere in conformal geometric algebra.
Definition

class Sphere3D

Member Functions
Sphere3D::Set Sets all five components of a sphere.
Constructor

Sphere3D();

Sphere3D(float su, float sx, float sy, float sz, float sw);

Parameters
su,sx,sy,sz,sw The coordinates of the sphere.
Description
The Sphere3D class is used to store a three-dimensional sphere with a five-dimensional quadrivector representation in conformal geometric algebra.

The default constructor leaves the components of the sphere undefined. If the initialization values are supplied, then they are assigned to the five coordinates of the sphere.
Nonmember Operations
bool operator ==(const Sphere3D& s, const Sphere3D& t) const; Returns a boolean value indicating whether the two spheres s and t are equal.
bool operator !=(const Sphere3D& s, const Sphere3D& t) const; Returns a boolean value indicating whether the two spheres s and t are not equal.
Sphere3D operator -(const Sphere3D& s); Returns the negation of the sphere s.
Sphere3D operator *(const Sphere3D& s, float n); Returns the product of the sphere s and the scalar n.
Sphere3D operator *(float n, Sphere3D& s); Returns the product of the sphere s and the scalar n.
Sphere3D operator /(const Sphere3D& s, float n); Returns the product of the sphere s and the inverse of the scalar n.
const Sphere3D& Reverse(const Sphere3D& s); Returns the reverse of the sphere s.
Round3D Dual(const Sphere3D& sSphere3D& s); Returns the reverse of the sphere s.
Vector4D Anticarrier(const Sphere3D& s); Returns the anticarrier of the sphere s.
Circle3D Attitude(const Sphere3D& s); Returns the attitude of the sphere s.
Round3D Center(const Sphere3D& s); Returns the center of the sphere s.
Point3D FlatCenter(const Sphere3D& s); Returns the flat center of the sphere s.
Sphere3D Container(const Sphere3D& s); Returns the container of the sphere s.
Sphere3D Partner(const Sphere3D& s); Returns the partner of the sphere s.
float SquaredRadiusNorm(const Sphere3D& s); Returns the squared radius of the sphere s.
float SquaredCenterNorm(const Sphere3D& s); Returns the squared distance from the origin to the center of the sphere s.
float SquaredWeightNorm(const Sphere3D& s); Returns the squared weight of the sphere s.
See Also

Round3D

Dipole3D

Circle3D