# 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.

## ◆ 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.

## ◆ 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.