SpatialConstraint

Search for usage in LXR

SpatialConstraint Class Reference

#include <SpatialConstraint.h>

Public Member Functions

 SpatialConstraint ()
 
 SpatialConstraint (SpatialVector, float64)
 
bool contains (const SpatialVector v)
 
SpatialVectorv ()
 

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.
     |        /\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 half-sphere. 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]

SpatialConstraint::SpatialConstraint ( )
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()

SpatialVector & SpatialConstraint::v ( )
inline

give back vector

Definition at line 88 of file SpatialConstraint.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.