Public Member Functions |
| RVector | flipHorizontal () |
| | Mirrors this vector at the Y-axis.
|
| RVector | flipVertical () |
| | Mirrors this vector at the X-axis.
|
| double | getAngle () const |
| double | getAngleTo (const RVector &v) const |
| double | getAngleToPlaneXY () const |
| RVector | getCeil () const |
| RVector | getClosest (const QList< RVector > &list) const |
| double | getClosestDistance (const QList< RVector > &list, int counts) |
| int | getClosestIndex (const QList< RVector > &list) const |
| double | getDistanceTo (const RVector &v) const |
| double | getDistanceTo2d (const RVector &v) const |
| RVector | getDividedComponents (const RVector &v) const |
| RVector | getFloor () const |
| RVector | getLerp (const RVector &v, double t) const |
| | Linear interpolation between this and v by fraction 't'.
|
| double | getMagnitude () const |
| double | getMagnitude2d () const |
| RVector | getMultipliedComponents (const RVector &v) const |
| RVector | getNegated () const |
| RVector | getNormalized () const |
| double | getSquaredMagnitude () const |
| RVector | getTransformed (const RMatrix &m) const |
| RVector | getTransformed2d (const RMatrix &m) const |
| RVector | getUnitVector () const |
| double | getX () |
| double | getY () |
| double | getZ () |
| bool | isInside (const RBox &b) const |
| bool | isInWindow (const RVector &firstCorner, const RVector &secondCorner) |
| RVector | isoProject (RS::IsoProjectionType type) |
| | Changes this vector into its isometric projection.
|
| bool | isValid () const |
| RVector | mirror (const RLine &axis) |
| | Mirrors this vector at the given axis.
|
| RVector | mirror (const RVector &axis1, const RVector &axis2) |
| RVector | move (const RVector &offset) |
| | Moves this vector by the given offset.
|
| RVector | normalize () |
| | Normalizes this vector and returns a reference to this vector.
|
| bool | operator!= (const RVector &v) const |
| RVector | operator* (double s) const |
| | binary * operator.
|
| void | operator*= (double s) |
| | *= operator
|
| RVector | operator+ (const RVector &v) const |
| | binary + operator.
|
| void | operator+= (const RVector &v) |
| | += operator.
|
| RVector | operator- (const RVector &v) const |
| | binary - operator.
|
| RVector | operator- () const |
| | unary - operator.
|
| void | operator-= (const RVector &v) |
| | -= operator.
|
| RVector | operator/ (double s) const |
| | binary / operator.
|
| void | operator/= (double s) |
| | /= operator
|
| bool | operator== (const RVector &v) const |
| | == operator
|
| RVector | rotate (double rotation) |
| | Rotates this vector around 0/0 by the given angle.
|
| RVector | rotate (double rotation, const RVector ¢er) |
| | Rotates this vector around the given center by the given angle.
|
| | RVector () |
| | Constructor for a valid vector (0/0/0).
|
| | RVector (double vx, double vy, double vz=0.0, bool valid_in=true) |
| | Constructor for a point with given valid flag.
|
| RVector | scale (double factor, const RVector ¢er=nullVector) |
| | Scales this vector by the given factor with the given center.
|
| RVector | scale (const RVector &factors, const RVector ¢er=nullVector) |
| | Scales this vector by the given factors with the given center.
|
| void | set (double vx, double vy, double vz=0.0) |
| | Sets new values for the vector and makes the vector valid.
|
| void | setAngle (double a) |
| void | setMagnitude2d (double m) |
| | Sets the vector magnitude without chaning the direction.
|
| void | setPolar (double radius, double angle) |
| | Sets a new position for the vector in polar coordinates.
|
| void | setX (double x) |
| void | setY (double y) |
| void | setZ (double z) |
| RVector | stretch (const RPolyline &area, const RVector &offset) |
| | Moves this vector by offset if it is inside the given area.
|
| RVector | transform (const RMatrix &m) |
| | Generic 3d transformation.
|
| RVector | transform2d (const RMatrix &m) |
| | Generic 2d transformation.
|
| RVector | transform2d (const QTransform &t) |
| | Transforms this vector with the given transformation matrix.
|
Static Public Member Functions |
| static RVector | createPolar (double radius, double angle) |
| static RVector | getAverage (const RVector &v1, const RVector &v2) |
| | Convenience function.
|
| static RVector | getCrossProduct (const RVector &v1, const RVector &v2) |
| static double | getDotProduct (const RVector &v1, const RVector &v2) |
| | Scalarproduct (dot product).
|
| static RVector | getMaximum (const QList< RVector > &vectors) |
| static RVector | getMaximum (const RVector &v1, const RVector &v2) |
| static RVector | getMinimum (const QList< RVector > &vectors) |
| static RVector | getMinimum (const RVector &v1, const RVector &v2) |
| static QList< double > | getXList (const QList< RVector > &vectors) |
| static QList< double > | getYList (const QList< RVector > &vectors) |
| static QList< double > | getZList (const QList< RVector > &vectors) |
| static bool | greaterThanX (const RVector &v1, const RVector &v2) |
| static bool | greaterThanY (const RVector &v1, const RVector &v2) |
| static bool | lessThanX (const RVector &v1, const RVector &v2) |
| static bool | lessThanY (const RVector &v1, const RVector &v2) |
| static void | moveList (QList< RVector > &list, const RVector &offset) |
| static void | rotateList (QList< RVector > &list, double rotation) |
| static void | rotateList (QList< RVector > &list, double rotation, const RVector ¢er) |
| static void | scaleList (QList< RVector > &list, double factor, const RVector ¢er=nullVector) |
| static void | scaleList (QList< RVector > &list, const RVector &factors, const RVector ¢er=nullVector) |
Represents a 3d vector (x/y/z).
- Scriptable:
- This class is wrapped for script environments.
- Copyable:
- Script wrappers of this class should pass objects by reference.