| 
    Jpp test-rotations-old
    
   the software that should make you happy 
   | 
 
Cylinder object. More...
#include <JCylinder3D.hh>
  
Public Types | |
| typedef std::pair< double, double > | intersection_type | 
| Type definition of intersection.   | |
Public Member Functions | |
| JCylinder3D () | |
| Default constructor.   | |
| JCylinder3D (const JCircle2D &circle, const double zmin, const double zmax) | |
| Constructor.   | |
| template<class T > | |
| JCylinder3D (T __begin, T __end, const double precision=std::numeric_limits< double >::epsilon()) | |
| Constructor.   | |
| double | getZmin () const | 
| Get minimal z position.   | |
| double | getZmax () const | 
| Get maximal z position.   | |
| void | setZmin (const double zmin) | 
| Set minimal z position.   | |
| void | setZmax (const double zmax) | 
| Set maximal z position.   | |
| JCylinder3D & | add (const JVector3D &pos) | 
| Add position.   | |
| void | addMargin (const double D) | 
| Add (safety) margin.   | |
| double | getVolume () const | 
| Get volume.   | |
| JPosition3D | getCenter () const | 
| Get centre.   | |
| bool | is_inside (const JVector3D &pos) const | 
| Check whether given point is inside cylinder.   | |
| double | getDistance (const JVector3D &pos) const | 
| Get distance between cylinder wall and given position.   | |
| double | getDistanceSquared (const JVector3D &pos) const | 
| Get square of distance between cylinder wall and given position.   | |
| intersection_type | getIntersection (const JAxis3D &axis) const | 
| Get intersection points of axis with cylinder.   | |
| double | getRadius () const | 
| Get radius.   | |
| void | set (const JVector2D &p0, const JVector2D &p1) | 
| Set circle.   | |
| void | set (const JVector2D &p0, const JVector2D &p1, const JVector2D &p2, const double precision=std::numeric_limits< double >::epsilon()) | 
| Set circle.   | |
| template<class T > | |
| void | set (T __begin, T __end, const double precision=std::numeric_limits< double >::epsilon()) | 
| Set circle.   | |
| bool | is_inside (const JVector2D &pos, const double precision=std::numeric_limits< double >::min()) const | 
| Check whether given point is inside circle.   | |
| const JPosition2D & | getPosition () const | 
| Get position.   | |
| JPosition2D & | getPosition () | 
| Get position.   | |
| void | setPosition (const JVector2D &pos) | 
| Set position.   | |
| operator JAngle2D () const | |
| Type conversion operator.   | |
| operator JVersor2D () const | |
| Type conversion operator.   | |
| JPosition2D & | rotate (const JRotation2D &R) | 
| Rotate.   | |
| JPosition2D & | rotate_back (const JRotation2D &R) | 
| Rotate back.   | |
| double | getDot (const JAngle2D &angle) const | 
| Get dot product.   | |
| double | getDot (const JVersor2D &versor) const | 
| Get dot product.   | |
| double | getDot (const JVector2D &point) const | 
| Get dot product.   | |
| double | getPerpDot (const JAngle2D &angle) const | 
| Get perpendicular dot product.   | |
| double | getPerpDot (const JVersor2D &dir) const | 
| Get perpendicular dot product.   | |
| double | getPerpDot (const JVector2D &point) const | 
| Get perpendicular dot product.   | |
| JVector2D & | transform (const JMatrix2D &T) | 
| Transform.   | |
| double | getX () const | 
| Get x position.   | |
| double | getY () const | 
| Get y position.   | |
| JVector2D & | negate () | 
| Negate vector.   | |
| JVector2D & | add (const JVector2D &vector) | 
| Add vector.   | |
| JVector2D & | sub (const JVector2D &vector) | 
| Subtract vector.   | |
| JVector2D & | mul (const double factor) | 
| Scale vector.   | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.   | |
| JVector2D & | div (const double factor) | 
| Scale vector.   | |
| bool | equals (const JVector2D &vector, const double precision=std::numeric_limits< double >::min()) const | 
| Check equality.   | |
| double | getLengthSquared () const | 
| Get length squared.   | |
| double | getLength () const | 
| Get length.   | |
| double | getDistanceSquared (const JVector2D &point) const | 
| Get squared of distance to point.   | |
| double | getDistance (const JVector2D &point) const | 
| Get distance to point.   | |
Protected Attributes | |
| double | zmin | 
| double | zmax | 
| double | __r | 
| double | __x | 
| double | __y | 
Private Member Functions | |
| template<class T > | |
| void | configure (T __begin, T __end, const JVector2D &p0, const double precision) | 
| Determine smallest enclosing circle.   | |
| template<class T > | |
| void | configure (T __begin, T __end, const JVector2D &p0, const JVector2D &p1, const double precision) | 
| Determine smallest enclosing circle.   | |
Friends | |
| std::istream & | operator>> (std::istream &in, JCylinder3D &cylinder) | 
| Read cylinder from input stream.   | |
| std::ostream & | operator<< (std::ostream &out, const JCylinder3D &cylinder) | 
| Write cylinder to output stream.   | |
| JReader & | operator>> (JReader &in, JCylinder3D &cylinder) | 
| Read cylinder from input.   | |
| JWriter & | operator<< (JWriter &out, const JCylinder3D &cylinder) | 
| Write cylinder to output.   | |
Cylinder object.
The cylinder consists of a 2D circle in the (x,y) plane and a range in z (i.e. axis of cylinder is parallel to the z-axis).
Definition at line 39 of file JCylinder3D.hh.
| std::pair<double, double> JGEOMETRY3D::JCylinder3D::intersection_type | 
Type definition of intersection.
Definition at line 46 of file JCylinder3D.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 52 of file JCylinder3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
Determines smallest enclosing cylinder for any number of points.
| __begin | begin of data | 
| __end | end of data | 
| precision | precision | 
Definition at line 86 of file JCylinder3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Set minimal z position.
| zmin | minimal z position | 
Definition at line 133 of file JCylinder3D.hh.
      
  | 
  inline | 
Set maximal z position.
| zmax | maximal z position | 
Definition at line 144 of file JCylinder3D.hh.
      
  | 
  inline | 
Add position.
| pos | position | 
Definition at line 156 of file JCylinder3D.hh.
      
  | 
  inline | 
Add (safety) margin.
| D | margin | 
Definition at line 172 of file JCylinder3D.hh.
      
  | 
  inline | 
Get volume.
Definition at line 185 of file JCylinder3D.hh.
      
  | 
  inline | 
Get centre.
Definition at line 196 of file JCylinder3D.hh.
      
  | 
  inline | 
Check whether given point is inside cylinder.
| pos | position | 
Definition at line 208 of file JCylinder3D.hh.
      
  | 
  inline | 
Get distance between cylinder wall and given position.
| pos | position | 
Definition at line 222 of file JCylinder3D.hh.
      
  | 
  inline | 
Get square of distance between cylinder wall and given position.
| pos | position | 
Definition at line 263 of file JCylinder3D.hh.
      
  | 
  inline | 
Get intersection points of axis with cylinder.
| axis | axis | 
Definition at line 277 of file JCylinder3D.hh.
      
  | 
  inlineinherited | 
Set circle.
Determines circle through two points.
| p0 | first point | 
| p1 | second point | 
Definition at line 157 of file JCircle2D.hh.
      
  | 
  inlineinherited | 
Set circle.
Determines circle through three points.
| p0 | first point | 
| p1 | second point | 
| p2 | third point | 
| precision | precision | 
Definition at line 175 of file JCircle2D.hh.
      
  | 
  inlineinherited | 
Set circle.
Determines smallest enclosing circle around set of points.
    double getX();   // x coordinate
    double getY();   // y coordinate
| __begin | begin of data | 
| __end | end of data | 
| precision | precision | 
Definition at line 226 of file JCircle2D.hh.
      
  | 
  inlineinherited | 
Check whether given point is inside circle.
| pos | position | 
| precision | precision | 
Definition at line 270 of file JCircle2D.hh.
      
  | 
  inlineprivateinherited | 
Determine smallest enclosing circle.
| __begin | begin of data | 
| __end | end of data | 
| p0 | point on circle | 
| precision | precision | 
Definition at line 358 of file JCircle2D.hh.
      
  | 
  inlineprivateinherited | 
Determine smallest enclosing circle.
| __begin | begin of data | 
| __end | end of data | 
| p0 | point on circle | 
| p1 | point on circle | 
| precision | precision | 
Definition at line 387 of file JCircle2D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Rotate.
| R | rotation matrix | 
Definition at line 154 of file JPosition2D.hh.
      
  | 
  inlineinherited | 
Rotate back.
| R | rotation matrix | 
Definition at line 168 of file JPosition2D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| angle | angle | 
Definition at line 182 of file JPosition2D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| versor | versor | 
Definition at line 196 of file JPosition2D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| point | vector | 
Definition at line 235 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Get perpendicular dot product.
| angle | angle | 
Definition at line 210 of file JPosition2D.hh.
      
  | 
  inlineinherited | 
Get perpendicular dot product.
| dir | direction | 
Definition at line 224 of file JPosition2D.hh.
      
  | 
  inlineinherited | 
Get perpendicular dot product.
| point | vector | 
Definition at line 249 of file JVector2D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Subtract vector.
| vector | vector | 
Definition at line 115 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Scale vector.
| factor | multiplication factor | 
Definition at line 130 of file JVector2D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Scale vector.
| factor | division factor | 
Definition at line 145 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Check equality.
| vector | vector | 
| precision | precision | 
Definition at line 175 of file JVector2D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get length.
Definition at line 199 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Get squared of distance to point.
| point | point | 
Definition at line 211 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Get distance to point.
| point | point | 
Definition at line 223 of file JVector2D.hh.
      
  | 
  friend | 
Read cylinder from input stream.
| in | input stream | 
| cylinder | cylinder | 
Definition at line 347 of file JCylinder3D.hh.
      
  | 
  friend | 
Write cylinder to output stream.
| out | output stream | 
| cylinder | cylinder | 
Definition at line 363 of file JCylinder3D.hh.
      
  | 
  friend | 
Read cylinder from input.
| in | reader | 
| cylinder | cylinder | 
Definition at line 384 of file JCylinder3D.hh.
      
  | 
  friend | 
Write cylinder to output.
| out | writer | 
| cylinder | cylinder | 
Definition at line 400 of file JCylinder3D.hh.
      
  | 
  protected | 
Definition at line 410 of file JCylinder3D.hh.
      
  | 
  protected | 
Definition at line 411 of file JCylinder3D.hh.
      
  | 
  protectedinherited | 
Definition at line 345 of file JCircle2D.hh.
      
  | 
  protectedinherited | 
Definition at line 257 of file JVector2D.hh.
      
  | 
  protectedinherited | 
Definition at line 258 of file JVector2D.hh.