#include <vecmath.h>
Inheritance diagram for Point3< T >:


Public Member Functions | |
| T | distanceFromOrigin () const |
| T | distanceFromOriginSquared () const |
| T | distanceTo (const Point3 &) const |
| T | distanceToSquared (const Point3 &) const |
| Point3 & | operator *= (T) |
| Point3 & | operator+= (const Vector3< T > &) |
| Point3 & | operator-= (const Vector3< T > &) |
| T & | operator[] (int) const |
| Point3 (T *) | |
| Point3 (T, T, T) | |
| Point3 (const Point3 &) | |
| Point3 () | |
Public Attributes | |
| T | x |
| T | y |
| T | z |
|
|||||||||
|
Definition at line 321 of file vecmath.h.
|
|
||||||||||
|
Definition at line 325 of file vecmath.h.
|
|
||||||||||||||||||||
|
Definition at line 330 of file vecmath.h.
|
|
||||||||||
|
Definition at line 334 of file vecmath.h.
|
|
|||||||||
|
Definition at line 421 of file vecmath.h. References sqrt(), Point3< T >::x, Point3< T >::y, and Point3< T >::z. Referenced by buildGalacticForms(), StarDatabase::createStar(), SynchronousOrbit::getBoundingRadius(), Observer::getSelectionLongLat(), InitializeForms(), StarRenderer::process(), Renderer::render(), renderEclipseShadows(), Galaxy::renderGalaxyPointSprites(), Renderer::renderLocations(), CelestialBrowser::slotRefresh(), and EclipseFinder::testEclipse(). 00422 {
00423 return (T) sqrt(x * x + y * y + z * z);
00424 }
|
|
|||||||||
|
Definition at line 426 of file vecmath.h. References Point3< T >::x, Point3< T >::y, and Point3< T >::z.
|
|
||||||||||
|
Definition at line 407 of file vecmath.h. References sqrt(), Point3< T >::x, Point3< T >::y, and Point3< T >::z. Referenced by Renderer::labelStars(), BrighterStarPredicate::operator()(), CloseDSOPicker::process(), LODSphereMesh::renderPatches(), and StarBrowserCompareFunc(). 00408 {
00409 return (T) sqrt((p.x - x) * (p.x - x) +
00410 (p.y - y) * (p.y - y) +
00411 (p.z - z) * (p.z - z));
00412 }
|
|
||||||||||
|
Definition at line 414 of file vecmath.h. References Point3< T >::x, Point3< T >::y, and Point3< T >::z. 00415 {
00416 return ((p.x - x) * (p.x - x) +
00417 (p.y - y) * (p.y - y) +
00418 (p.z - z) * (p.z - z));
00419 }
|
|
||||||||||
|
Definition at line 365 of file vecmath.h. References Point3< T >::x, Point3< T >::y, and Point3< T >::z.
|
|
||||||||||
|
Definition at line 353 of file vecmath.h. References Point3< T >::x, Point3< T >::y, and Point3< T >::z.
|
|
||||||||||
|
Definition at line 359 of file vecmath.h. References Point3< T >::x, Point3< T >::y, and Point3< T >::z.
|
|
||||||||||
|
Definition at line 341 of file vecmath.h. 00342 {
00343 // Not portable--I'll write a new version when I try to compile on a
00344 // platform where it bombs.
00345 return ((T*) this)[n];
00346 }
|
|
|||||
|
|||||
|
|||||
1.4.1