• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
SpatialConstraint Class Reference

#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

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

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:
  • SpatialConstraint.h
  • SpatialConstraint.cpp
This file is part of the KDE documentation.
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.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal