Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::Sphere Class Reference

The Sphere class defines a sphere using a center and a radius using vl::Real precision. More...

#include <Sphere.hpp>

List of all members.

Public Member Functions

 Sphere ()
 Constructor.
 Sphere (const vec3 &center, Real radius)
 Constructor.
 Sphere (const AABB &aabb)
 Constructor.
void setNull ()
void setPoint ()
bool isNull () const
bool isPoint () const
void setCenter (const vec3 &center)
const vec3center () const
void setRadius (Real radius)
Real radius () const
bool includes (const Sphere &other) const
Sphereoperator= (const AABB &aabb)
Sphere operator+ (const Sphere &other)
const Sphereoperator+= (const Sphere &other)
void transformed (Sphere &sphere, const mat4 &mat) const
Sphere transformed (const mat4 &mat) const

Protected Attributes

vec3 mCenter
Real mRadius

Detailed Description

The Sphere class defines a sphere using a center and a radius using vl::Real precision.


Constructor & Destructor Documentation

vl::Sphere::Sphere (  ) [inline]

Constructor.

vl::Sphere::Sphere ( const vec3 center,
Real  radius 
) [inline]

Constructor.

vl::Sphere::Sphere ( const AABB aabb ) [inline]

Constructor.


Member Function Documentation

void vl::Sphere::setNull (  ) [inline]
void vl::Sphere::setPoint (  ) [inline]
bool vl::Sphere::isNull (  ) const [inline]
bool vl::Sphere::isPoint (  ) const [inline]
void vl::Sphere::setCenter ( const vec3 center ) [inline]
const vec3& vl::Sphere::center (  ) const [inline]
void vl::Sphere::setRadius ( Real  radius ) [inline]
Real vl::Sphere::radius (  ) const [inline]
bool vl::Sphere::includes ( const Sphere other ) const [inline]
Sphere& vl::Sphere::operator= ( const AABB aabb ) [inline]
Sphere vl::Sphere::operator+ ( const Sphere other ) [inline]
const Sphere& vl::Sphere::operator+= ( const Sphere other ) [inline]
void vl::Sphere::transformed ( Sphere sphere,
const mat4 mat 
) const [inline]
Sphere vl::Sphere::transformed ( const mat4 mat ) const [inline]

Member Data Documentation


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

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 10:33:53.
Permission is granted to use this page to write and publish articles regarding Visualization Library.