SpatialConstraint
#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 skysphere.
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 halfsphere. 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.  /\s ===  > 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 halfsphere. Combining such, we get triangles, rectangles etc on the sphere surface (pure ZERO convexes)
Definition at line 75 of file SpatialConstraint.h.
Constructor & Destructor Documentation
◆ SpatialConstraint() [1/2]

inline 
Constructor.
Definition at line 79 of file SpatialConstraint.h.
◆ SpatialConstraint() [2/2]
SpatialConstraint::SpatialConstraint  (  SpatialVector  a, 
float64  d  
) 
Initialization constructor.
Definition at line 29 of file SpatialConstraint.cpp.
Member Function Documentation
◆ contains()
bool SpatialConstraint::contains  (  const SpatialVector  v  ) 
check whether a vector is inside this
Definition at line 42 of file SpatialConstraint.cpp.
◆ v()

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 © 19962022 The KDE developers.
Generated on Thu Aug 18 2022 03:56:49 by doxygen 1.8.17 written by Dimitri van Heesch, © 19972006
KDE's Doxygen guidelines are available online.