kstars
#include <SpatialConstraint.h>
Public Member Functions | |
SpatialConstraint () | |
SpatialConstraint (SpatialVector, float64) | |
bool | contains (const SpatialVector v) |
SpatialVector & | v () |
Detailed Description
The Constraint is really a cone on the sky-sphere.
It is characterized by its direction a_, the opening angle s_ and its cosine – the distance of the plane intersecting the sphere and the sphere center. If d_ = 0, we have a half-sphere. If it is negative, we have a 'hole' i.e. the room angle is larger than 90degrees.
Example: positive distance
. ____ . --- --- . / /|\ . / / |=\ . | / |==| this side is in the convex. . | / |===| . |------------|---| -> direction a . | \ |===| . | \ |==| . \ \ |=/ . \ |/ . ---____---. <-d-> is positive (s < 90)
Example: negative distance
. ____ . ---====--- . this side is /========/|\ . in the /========/=| \ . convex |==== s__/==| | . |===== / /===| | . dir. a <- |------------|---| 'hole' in the sphere . |========\===| | . |========\==| | . \========\=| / . \========|/ . ---____---. <-d-> is negative (s > 90)
for d=0 we have a half-sphere. Combining such, we get triangles, rectangles etc on the sphere surface (pure ZERO convexes)
Definition at line 76 of file SpatialConstraint.h.
Constructor & Destructor Documentation
|
inline |
Constructor.
Definition at line 79 of file SpatialConstraint.h.
SpatialConstraint::SpatialConstraint | ( | SpatialVector | a, |
float64 | d | ||
) |
Initialization constructor.
Definition at line 29 of file SpatialConstraint.cpp.
Member Function Documentation
bool SpatialConstraint::contains | ( | const SpatialVector | v | ) |
check whether a vector is inside this
Definition at line 43 of file SpatialConstraint.cpp.
|
inline |
give back vector
Definition at line 88 of file SpatialConstraint.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.