|
|
| Ellipsoid () |
| | Default constructor.
|
| |
| | Ellipsoid (const Vector3 &p) |
| | Constructor from position. More...
|
| |
| | Ellipsoid (double a, double b, double c) |
| | Constructor from semiaxes. More...
|
| |
| | Ellipsoid (const Vector3 &p, double a, double b, double c) |
| | Constructor from position and semiaxes. More...
|
| |
| | Ellipsoid (const Sphere &s) |
| | Constructor from Sphere. More...
|
| |
|
double | getA () |
| | Getter for 1st semiaxis.
|
| |
|
double | getB () |
| | Getter for 2nd semiaxis.
|
| |
|
double | getC () |
| | Getter for 3rd semiaxis.
|
| |
| void | setA (double a) |
| | Setter for 1st semiaxis. More...
|
| |
| void | setB (double b) |
| | Setter for 2nd semiaxis. More...
|
| |
| void | setC (double c) |
| | Setter for 3rd semiaxis. More...
|
| |
|
double | getRandomAxesRatio () |
| | Getter for randomAxesRatio.
|
| |
|
void | setRandomAxesRatio (double v) |
| | Setter for randomAxesRatio.
|
| |
| double | computeRelativeDistanceFrom (const Vector3 &p) const |
| | Computes relative distance between gvien point and given Ellipsoid. Relative distance means in direction pos–p, the value is 1 on surface of the Ellipsoid, in the center is 0, inside Ellipsoid (0,1) and outside Ellipsoid >1. More...
|
| |
| virtual bool | containsPoint (const Vector3 &p) const |
| | Ckecks, whether given point is contained by receiver. More...
|
| |
| virtual bool | containsSphere (const Sphere &s) const |
| | Ckecks, whether given sphere is contained by receiver. More...
|
| |
| virtual double | computeDistanceFrom (const Aggregate &aggreg) const |
| | Computes distance of receiver from given Aggregate. More...
|
| |
|
virtual double | computeVolume () const |
| | Computes volume of receiver.
|
| |
| virtual void | fromSize (double s) |
| | Adjust receiver dimensions accodring to given size. Sets b=0.5*s, a=b*(1+0.5*random), c=b*(1-0.5*random) More...
|
| |
| void | computeProjectionOnCoordAxis (double &s0, double &w, int axis) const |
| | Computes parameters of its projction onto coordinate axis (such that the projection is s0+-w) More...
|
| |
| virtual double | computeMaxCoord (int axis) const |
| | Computes maximum coordinate along given axis. More...
|
| |
| virtual double | computeMinCoord (int axis) const |
| | Computes minimum coordinate along given axis. More...
|
| |
|
virtual double | getSize () const |
| | Returns size of receiver (what sieve opening it would normally pass), i.e. the middle value from a,b,c.
|
| |
|
virtual double | getMaxSize () const |
| | Returns maximum size of receiver.
|
| |
|
Matrix3 | computeMatrixB () const |
| | Computes matrix .
|
| |
|
Matrix3 | computeMatrixBT () const |
| | Computes matrix .
|
| |
|
Matrix3 | computeMatrixBInversed () const |
| | Computes matrix .
|
| |
|
Matrix3 | computeMatrixBTInversed () const |
| | Computes matrix .
|
| |
|
Matrix3 | computeMatrixSigma () const |
| | Computes matrix , a diagonal matrix with , where is th smiaxis length.
|
| |
|
Matrix3 | computeMatrixSigmaInversed () const |
| | Computes matrix , a diagonal matrix with , where is th smiaxis length.
|
| |
|
Matrix3 | computeMatrixSigmaSquare () const |
| | Computes matrix .
|
| |
|
Matrix3 | computeMatrixA () const |
| | Computes matrix .
|
| |
| Vector3 | computeNearestPointFrom (const Vector3 &p) const |
| | Computes nearest point of receiver to given point. Returns given point if it lies inside the receiver, returns point on its surface otherwise. More...
|
| |
| Vector3 | computeFarthestPointFrom (const Vector3 &p) const |
| | Computes farthest point of receiver to given point. Returns point on its surface. The computation is based on Monte-Carlo random sampling. More...
|
| |
| double | computeEstimatedDistanceFrom (const Ellipsoid &e) const |
| | Computes estimated distance between receiver and given Ellipsoid. Mainly used as a quick check if two Ellipsoids overlap (return < 0) or not (return > 0) More...
|
| |
|
virtual const string & | getClassName () |
| | Returns string representation of Ellipsoid class name.
|
| |
| bool | operator== (const Aggregate &other) const |
| | Equality operator. More...
|
| |
| bool | operator!= (const Aggregate &other) const |
| | Inequality operator. More...
|
| |
| bool | isInsideCube (double s) const |
| | Determines if receiver is entirely inside cube. The cube is in positive octant and has one corner in origin. More...
|
| |
|
int | getNumber () |
| | Getter for number.
|
| |
| void | setNumber (int n) |
| | Setter for number. More...
|
| |
|
const Vector3 & | getPos () const |
| | Getter for position (by reference)
|
| |
|
Vector3 | getPos () |
| | Getter for position (by value)
|
| |
| void | setPos (const Vector3 &p) |
| | Setter for position. More...
|
| |
| void | setPos (double x, double y, double z) |
| | Setter for position (from individual components) More...
|
| |
|
const Quaternion & | getOri () const |
| | Getter for orientation (by reference)
|
| |
|
Quaternion | getOri () |
| | Getter for orientation (by value)
|
| |
| void | setOri (const Quaternion &q) |
| | Setter for orientation. More...
|
| |
|
| static double | computeRelativeDistanceFrom (const Vector3 &p, const Matrix3 &bT, const Vector3 &pos) |
| | Computes relative distance between gvien point and given Ellipsoid. Relative distance means in direction pos–p, the value is 1 on surface of the Ellipsoid, in the center is 0, inside Ellipsoid (0,1) and outside Ellipsoid >1. More...
|
| |
| static bool | containsPoint (const Vector3 &p, const Matrix3 &bT, const Vector3 &pos) |
| | Auxiliary structure to test if point lies inside given Ellipsoid. More...
|
| |
| static Vector3 | computeNearestPointFrom (const Vector3 &p, const Matrix3 &bT, const Vector3 &pos) |
| | Computes nearest point of Ellipsoid to given point. Returns given point if it lies inside the Ellipsoid, returns point on its surface otherwise. More...
|
| |
| static Vector3 | computeFarthestPointFrom (const Vector3 &p, const Matrix3 &bT, const Vector3 &pos) |
| | Computes farthest point of Ellipsoid to given point. Returns point on its surface. The computation is based on Monte-Carlo random sampling. More...
|
| |
| static Aggregate * | Load (istream &is) |
| | Create and return a new aggregate from given istream. More...
|
| |