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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • htmesh
SpatialConstraint.h
Go to the documentation of this file.
1 #ifndef _SpatialConstraint_h
2 #define _SpatialConstraint_h
3 //# Filename: SpatialConstraint.h
4 //#
5 //# Classes defined here: SpatialConstraint SpatialSign
6 //#
7 //#
8 //# Author: Peter Z. Kunszt, based on A. Szalay's code
9 //#
10 //# Date: October 16, 1998
11 //#
12 //# Copyright (C) 2000 Peter Z. Kunszt, Alex S. Szalay, Aniruddha R. Thakar
13 //# The Johns Hopkins University
14 //#
15 //# Modification History:
16 //#
17 //# Oct 18, 2001 : Dennis C. Dinge -- Replaced ValVec with std::vector
18 //#
19 
20 #include "SpatialGeneral.h"
21 #include "SpatialSign.h"
22 #include "SpatialVector.h"
23 //
24 //########################################################################
25 //#
26 //# Spatial Constraint class
27 //#
76 class LINKAGE SpatialConstraint {
77 public:
79  SpatialConstraint() {};
80 
82  SpatialConstraint(SpatialVector, float64);
83 
85  bool contains(const SpatialVector v);
86 
88  SpatialVector & v() { return a_; }
89 
90 private:
91  Sign sign_;
92  SpatialVector a_; // normal vector
93  float64 d_; // distance from origin
94  float64 s_; // cone angle in radians
95 
96  friend class RangeConvex;
97 };
98 
99 #endif
SpatialVector.h
SpatialSign.h
SpatialConstraint
The Constraint is really a cone on the sky-sphere.
Definition: SpatialConstraint.h:76
SpatialConstraint::SpatialConstraint
SpatialConstraint()
Constructor.
Definition: SpatialConstraint.h:79
Sign
Sign
Definition: SpatialSign.h:8
SpatialVector
The SpatialVector is a 3D vector usually living on the surface of the sphere.
Definition: SpatialVector.h:32
SpatialConstraint::v
SpatialVector & v()
give back vector
Definition: SpatialConstraint.h:88
RangeConvex
A spatial convex is composed of spatial constraints.
Definition: RangeConvex.h:59
SpatialGeneral.h
float64
double float64
Definition: SpatialGeneral.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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