Jpp
15.0.2
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. More... | |
Public Member Functions | |
JCylinder3D () | |
Default constructor. More... | |
JCylinder3D (const JCircle2D &circle, const double zmin, const double zmax) | |
Constructor. More... | |
template<class T > | |
JCylinder3D (T __begin, T __end, const double precision=std::numeric_limits< double >::epsilon()) | |
Constructor. More... | |
double | getZmin () const |
Get minimal z position. More... | |
double | getZmax () const |
Get maximal z position. More... | |
void | setZmin (const double zmin) |
Set minimal z position. More... | |
void | setZmax (const double zmax) |
Set maximal z position. More... | |
JCylinder3D & | add (const JVector3D &pos) |
Add position. More... | |
void | addMargin (const double D) |
Add (safety) margin. More... | |
double | getVolume () const |
Get volume. More... | |
JPosition3D | getCenter () const |
Get centre. More... | |
bool | is_inside (const JVector3D &pos) const |
Check whether given point is inside cylinder. More... | |
double | getDistance (const JVector3D &pos) const |
Get distance between cylinder wall and given position. More... | |
double | getDistanceSquared (const JVector3D &pos) const |
Get square of distance between cylinder wall and given position. More... | |
intersection_type | getIntersection (const JAxis3D &axis) const |
Get intersection points of axis with cylinder. More... | |
double | getRadius () const |
Get radius. More... | |
void | set (const JVector2D &p0, const JVector2D &p1) |
Set circle. More... | |
void | set (const JVector2D &p0, const JVector2D &p1, const JVector2D &p2, const double precision=std::numeric_limits< double >::epsilon()) |
Set circle. More... | |
template<class T > | |
void | set (T __begin, T __end, const double precision=std::numeric_limits< double >::epsilon()) |
Set circle. More... | |
bool | is_inside (const JVector2D &pos, const double precision=std::numeric_limits< double >::min()) const |
Check whether given point is inside circle. More... | |
const JPosition2D & | getPosition () const |
Get position. More... | |
JPosition2D & | getPosition () |
Get position. More... | |
void | setPosition (const JVector2D &pos) |
Set position. More... | |
operator JAngle2D () const | |
Type conversion operator. More... | |
operator JVersor2D () const | |
Type conversion operator. More... | |
JPosition2D & | rotate (const JRotation2D &R) |
Rotate. More... | |
JPosition2D & | rotate_back (const JRotation2D &R) |
Rotate back. More... | |
double | getDot (const JAngle2D &angle) const |
Get dot product. More... | |
double | getDot (const JVersor2D &versor) const |
Get dot product. More... | |
double | getDot (const JVector2D &point) const |
Get dot product. More... | |
double | getPerpDot (const JAngle2D &angle) const |
Get perpendicular dot product. More... | |
double | getPerpDot (const JVersor2D &dir) const |
Get perpendicular dot product. More... | |
double | getPerpDot (const JVector2D &point) const |
Get perpendicular dot product. More... | |
double | getX () const |
Get x position. More... | |
double | getY () const |
Get y position. More... | |
JVector2D & | negate () |
Negate vector. More... | |
JVector2D & | add (const JVector2D &vector) |
Add vector. More... | |
JVector2D & | sub (const JVector2D &vector) |
Subtract vector. More... | |
JVector2D & | mul (const double factor) |
Scale vector. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
JVector2D & | div (const double factor) |
Scale vector. More... | |
JVector2D & | transform (const JMatrix2D &T) |
Transform. More... | |
bool | equals (const JVector2D &vector, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
double | getLengthSquared () const |
Get length squared. More... | |
double | getLength () const |
Get length. More... | |
double | getDistanceSquared (const JVector2D &point) const |
Get squared of distance to point. More... | |
double | getDistance (const JVector2D &point) const |
Get distance to point. More... | |
Protected Attributes | |
double | zmin |
double | zmax |
double | __r |
double | __x |
double | __y |
Friends | |
std::istream & | operator>> (std::istream &in, JCylinder3D &cylinder) |
Read cylinder from input stream. More... | |
std::ostream & | operator<< (std::ostream &out, const JCylinder3D &cylinder) |
Write cylinder to output stream. More... | |
JReader & | operator>> (JReader &in, JCylinder3D &cylinder) |
Read cylinder from input. More... | |
JWriter & | operator<< (JWriter &out, const JCylinder3D &cylinder) |
Write cylinder to output. More... | |
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.
typedef std::pair<double, double> JGEOMETRY3D::JCylinder3D::intersection_type |
Type definition of intersection.
Definition at line 46 of file JCylinder3D.hh.
|
inline |
|
inline |
Constructor.
circle | 2D circle in (x,y) |
zmin | minimal z |
zmax | maximal z |
Definition at line 66 of file JCylinder3D.hh.
|
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 173 of file JCylinder3D.hh.
|
inline |
Get volume.
Definition at line 186 of file JCylinder3D.hh.
|
inline |
Get centre.
Definition at line 197 of file JCylinder3D.hh.
|
inline |
Check whether given point is inside cylinder.
pos | position |
Definition at line 209 of file JCylinder3D.hh.
|
inline |
Get distance between cylinder wall and given position.
pos | position |
Definition at line 223 of file JCylinder3D.hh.
|
inline |
Get square of distance between cylinder wall and given position.
pos | position |
Definition at line 264 of file JCylinder3D.hh.
|
inline |
Get intersection points of axis with cylinder.
axis | axis |
Definition at line 278 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.
|
inlineinherited |
Get position.
Definition at line 98 of file JPosition2D.hh.
|
inlineinherited |
Get position.
Definition at line 109 of file JPosition2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 142 of file JPosition2D.hh.
|
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 |
Multiply with object.
object | object |
Definition at line 357 of file JMath.hh.
|
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 348 of file JCylinder3D.hh.
|
friend |
Write cylinder to output stream.
out | output stream |
cylinder | cylinder |
Definition at line 364 of file JCylinder3D.hh.
|
friend |
Read cylinder from input.
in | reader |
cylinder | cylinder |
Definition at line 385 of file JCylinder3D.hh.
|
friend |
Write cylinder to output.
out | writer |
cylinder | cylinder |
Definition at line 401 of file JCylinder3D.hh.
|
protected |
Definition at line 411 of file JCylinder3D.hh.
|
protected |
Definition at line 412 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.