Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gfx::Disc3 Class Reference

Collaboration diagram for gfx::Disc3:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Disc3 ()
 Disc3 (const Point3 &origin, const Vector3 &normal, Real radius)
 Disc3 (const Disc3 &d)
 ~Disc3 ()
Disc3operator= (const Disc3 &d)
bool operator== (const Disc3 &d) const
bool operator!= (const Disc3 &d) const
bool equals (const Disc3 &d, Real epsilon=consts::epsilon) const
Real distanceTo (const Point3 &p) const
 shortest distance between disc and p

Point3 pointClosestTo (const Point3 &p) const
 find point on the disc that is closest to p

bool contains (const Point3 &p) const
 is point p on the disc?

Segment3 shortestSegmentBetween (const Segment3 &s) const
 return shortest segment between this disc and segment s


Public Attributes

Point3 o
 origin

Vector3 n
 normal

Real r
 radius


Constructor & Destructor Documentation

gfx::Disc3::Disc3  )  [inline]
 

Definition at line 43 of file Disc3.

References n.

gfx::Disc3::Disc3 const Point3 origin,
const Vector3 normal,
Real  radius
[inline]
 

Definition at line 45 of file Disc3.

References n, base::Vector3::normalize(), o, and base::Point3.

gfx::Disc3::Disc3 const Disc3 d  )  [inline]
 

Definition at line 47 of file Disc3.

References n, and o.

gfx::Disc3::~Disc3  )  [inline]
 

Definition at line 49 of file Disc3.


Member Function Documentation

bool gfx::Disc3::contains const Point3 p  )  const [inline]
 

is point p on the disc?

Definition at line 90 of file Disc3.

References distanceTo(), and base::Point3.

Real gfx::Disc3::distanceTo const Point3 p  )  const [inline]
 

shortest distance between disc and p

Definition at line 80 of file Disc3.

References base::Point3, and pointClosestTo().

Referenced by contains().

bool gfx::Disc3::equals const Disc3 d,
Real  epsilon = consts::epsilon
const [inline]
 

Definition at line 73 of file Disc3.

References base::Vector3::equals(), n, o, and r.

bool gfx::Disc3::operator!= const Disc3 d  )  const [inline]
 

Definition at line 67 of file Disc3.

References n, o, and r.

Disc3& gfx::Disc3::operator= const Disc3 d  )  [inline]
 

Definition at line 51 of file Disc3.

References n, base::Vector3::normalize(), o, and r.

bool gfx::Disc3::operator== const Disc3 d  )  const [inline]
 

Definition at line 61 of file Disc3.

References n, o, and r.

Point3 gfx::Disc3::pointClosestTo const Point3 p  )  const
 

find point on the disc that is closest to p

Referenced by distanceTo().

Segment3 gfx::Disc3::shortestSegmentBetween const Segment3 s  )  const
 

return shortest segment between this disc and segment s


Member Data Documentation

Vector3 gfx::Disc3::n
 

normal

Definition at line 101 of file Disc3.

Referenced by Disc3(), equals(), operator!=(), gfx::operator<<(), operator=(), and operator==().

Point3 gfx::Disc3::o
 

origin

Definition at line 100 of file Disc3.

Referenced by Disc3(), equals(), operator!=(), gfx::operator<<(), operator=(), and operator==().

Real gfx::Disc3::r
 

radius

Definition at line 102 of file Disc3.

Referenced by equals(), operator!=(), gfx::operator<<(), operator=(), and operator==().


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:49 2004 for OpenSim by doxygen 1.3.6