Jpp
|
Cylinder object. More...
#include <JCylinder3D.hh>
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) | |
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... | |
std::pair< double, double > | 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) |
Set circle. More... | |
template<class T > | |
void | set (T __begin, T __end) |
Set circle. More... | |
bool | is_inside (const JVector2D &pos) 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... | |
JVector2D & | mul (const JNullType &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.
A cylinder object consists of a 2D circle in (x,y) and a range in z.
Definition at line 37 of file JCylinder3D.hh.
|
inline |
|
inline |
Constructor.
circle | 2D circle in (x,y) |
zmin | minimal z |
zmax | maximal z |
Definition at line 58 of file JCylinder3D.hh.
Constructor.
Determines smallest enclosing cylinder for any number of points.
__begin | begin of data |
__end | end of data |
Definition at line 77 of file JCylinder3D.hh.
|
inline |
|
inline |
|
inline |
Set minimal z position.
zmin | minimal z position |
Definition at line 123 of file JCylinder3D.hh.
|
inline |
Set maximal z position.
zmax | maximal z position |
Definition at line 134 of file JCylinder3D.hh.
|
inline |
Add position.
pos | position |
Definition at line 146 of file JCylinder3D.hh.
|
inline |
Add (safety) margin.
D | margin |
Definition at line 163 of file JCylinder3D.hh.
|
inline |
Get volume.
Definition at line 176 of file JCylinder3D.hh.
|
inline |
Get centre.
Definition at line 187 of file JCylinder3D.hh.
|
inline |
Check whether given point is inside cylinder.
pos | position |
Definition at line 199 of file JCylinder3D.hh.
|
inline |
Get distance between cylinder wall and given position.
pos | position |
Definition at line 213 of file JCylinder3D.hh.
|
inline |
Get square of distance between cylinder wall and given position.
pos | position |
Definition at line 254 of file JCylinder3D.hh.
|
inline |
Get intersection points of axis with cylinder.
axis | axis |
Definition at line 268 of file JCylinder3D.hh.
|
inlineinherited |
Set circle.
Determines circle through two points.
p0 | first point |
p1 | second point |
Definition at line 134 of file JCircle2D.hh.
|
inlineinherited |
Set circle.
Determines circle through three points.
p0 | first point |
p1 | second point |
p2 | third point |
Definition at line 151 of file JCircle2D.hh.
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 |
Definition at line 200 of file JCircle2D.hh.
|
inlineinherited |
Check whether given point is inside circle.
pos | position |
Definition at line 239 of file JCircle2D.hh.
|
inlineinherited |
Get position.
Definition at line 97 of file JPosition2D.hh.
|
inlineinherited |
Get position.
Definition at line 108 of file JPosition2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 141 of file JPosition2D.hh.
|
inlineinherited |
Rotate.
R | rotation matrix |
Definition at line 153 of file JPosition2D.hh.
|
inlineinherited |
Rotate back.
R | rotation matrix |
Definition at line 167 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
angle | angle |
Definition at line 181 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
versor | versor |
Definition at line 195 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
point | vector |
Definition at line 234 of file JVector2D.hh.
|
inlineinherited |
Get perpendicular dot product.
angle | angle |
Definition at line 209 of file JPosition2D.hh.
|
inlineinherited |
Get perpendicular dot product.
dir | direction |
Definition at line 223 of file JPosition2D.hh.
|
inlineinherited |
Get perpendicular dot product.
point | vector |
Definition at line 248 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Subtract vector.
vector | vector |
Definition at line 114 of file JVector2D.hh.
|
inlineinherited |
Scale vector.
factor | multiplication factor |
Definition at line 129 of file JVector2D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale vector.
factor | division factor |
Definition at line 144 of file JVector2D.hh.
|
inlineinherited |
Check equality.
vector | vector |
precision | precision |
Definition at line 174 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 198 of file JVector2D.hh.
|
inlineinherited |
Get squared of distance to point.
point | point |
Definition at line 210 of file JVector2D.hh.
|
inlineinherited |
Get distance to point.
point | point |
Definition at line 222 of file JVector2D.hh.
|
friend |
Read cylinder from input stream.
in | input stream |
cylinder | cylinder |
Definition at line 338 of file JCylinder3D.hh.
|
friend |
Write cylinder to output stream.
out | output stream |
cylinder | cylinder |
Definition at line 354 of file JCylinder3D.hh.
|
friend |
Read cylinder from input.
in | reader |
cylinder | cylinder |
Definition at line 373 of file JCylinder3D.hh.
|
friend |
Write cylinder to output.
out | writer |
cylinder | cylinder |
Definition at line 389 of file JCylinder3D.hh.
|
protected |
Definition at line 399 of file JCylinder3D.hh.
|
protected |
Definition at line 400 of file JCylinder3D.hh.
|
protectedinherited |
Definition at line 311 of file JCircle2D.hh.
|
protectedinherited |
Definition at line 256 of file JVector2D.hh.
|
protectedinherited |
Definition at line 257 of file JVector2D.hh.