QCAD
Open Source 2D CAD
RVector Class Reference

Represents a 3d vector (x/y/z). More...

#include <RVector.h>

Inheritance diagram for RVector:
RRefPoint

Classes

class  RVectorAngleSort
 
class  RVectorDistanceSort
 
class  RVectorLeftRightTopBottomSort
 

Public Member Functions

RVector axonometricProjection (RS::IsoProjectionType type)
 Axonometric projection (isometric, dimetric, trimetric). More...
 
double dot (const RVector &other) const
 
bool equalsFuzzy (const RVector &v, double tol=RS::PointTolerance) const
 
bool equalsFuzzy2D (const RVector &v, double tol=RS::PointTolerance) const
 
RVector flipHorizontal ()
 Mirrors this vector at the Y-axis. More...
 
RVector flipVertical ()
 Mirrors this vector at the X-axis. More...
 
RVector get2D () const
 
RVector getAbsolute () const
 
double getAngle () const
 
double getAngleTo (const RVector &v) const
 
double getAngleToPlaneXY () const
 
RVector getCeil () const
 
RVector getClosest (const QList< RVector > &list) const
 
RVector getClosest2D (const QList< RVector > &list) const
 
double getClosestDistance (const QList< RVector > &list, int counts)
 
int getClosestIndex (const QList< RVector > &list, bool ignoreZ=false) const
 
int getClosestIndex2D (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'. More...
 
double getMagnitude () const
 
double getMagnitude2D () const
 
RVector getMirrored (const RLine &axis) const
 
RVector getMultipliedComponents (const RVector &v) const
 
RVector getNegated () const
 
RVector getNormalized () const
 
RVector getRotated (double rotation, const RVector &center) const
 
RVector getScaled (const RVector &factors, const RVector &center) const
 
double getSquaredMagnitude () const
 
RVector getTransformed (const RMatrix &m) const
 
RVector getTransformed2D (const QTransform &t) const
 
RVector getTransformed2DM (const RMatrix &m) const
 
RVector getUnitVector () const
 
double getX ()
 
double getY ()
 
double getZ ()
 
bool gteXY (const RVector &v) const
 
bool isInside (const RBox &b) const
 
bool isInWindow (const RVector &firstCorner, const RVector &secondCorner)
 
bool isNaN () const
 
RVector isoProject (RS::IsoProjectionType type)
 Changes this vector into its isometric projection. More...
 
bool isSane () const
 
bool isValid () const
 
bool isZero () const
 
bool lteXY (const RVector &v) const
 
RVector mirror (const RLine &axis)
 Mirrors this vector at the given axis. More...
 
RVector mirror (const RVector &axis1, const RVector &axis2)
 
RVector move (const RVector &offset)
 Moves this vector by the given offset. More...
 
RVector normalize ()
 Normalizes this vector and returns a reference to this vector. More...
 
RVector obliqueProjection (RS::IsoProjectionType type)
 
bool operator!= (const RVector &v) const
 
RVector operator* (double s) const
 binary * operator. More...
 
void operator*= (double s)
 *= operator More...
 
RVector operator+ (const RVector &v) const
 binary + operator. More...
 
void operator+= (const RVector &v)
 += operator. More...
 
RVector operator- () const
 unary - operator. More...
 
RVector operator- (const RVector &v) const
 binary - operator. More...
 
void operator-= (const RVector &v)
 -= operator. More...
 
RVector operator/ (double s) const
 binary / operator. More...
 
void operator/= (double s)
 /= operator More...
 
bool operator== (const RVector &v) const
 == operator More...
 
RVector rotate (double rotation)
 Rotates this vector around 0/0 by the given angle. More...
 
RVector rotate (double rotation, const RVector &center)
 Rotates this vector around the given center by the given angle. More...
 
RVector rotate3D (const QQuaternion &quaternion)
 
RVector rotate3D (const RLine &axis, double rotation)
 
 RVector ()
 Constructor for a valid null vector (0/0/0). More...
 
 RVector (const QList< double > &tuples)
 
 RVector (double vx, double vy, double vz=0.0, bool valid_in=true)
 Constructor for a point with given valid flag. More...
 
RVector scale (const RVector &factors, const RVector &center=nullVector)
 Scales this vector by the given factors with the given center. More...
 
RVector scale (double factor, const RVector &center=nullVector)
 Scales this vector by the given factor with the given center. More...
 
void set (double vx, double vy, double vz=0.0)
 Sets new values for the vector and makes the vector valid. More...
 
void setAngle (double a)
 
void setMagnitude2D (double m)
 Sets the vector magnitude without changing the direction. More...
 
void setPolar (double radius, double angle)
 Sets a new position for the vector in polar coordinates. More...
 
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. More...
 
RVector transform (const RMatrix &m)
 Generic 3d transformation. More...
 
RVector transform2D (const QTransform &t)
 Transforms this vector with the given transformation matrix. More...
 
RVector transform2DM (const RMatrix &m)
 Generic 2d transformation. More...
 

Static Public Member Functions

static bool containsFuzzy (const QList< RVector > &vectors, const RVector &v, double tol=RS::PointTolerance)
 
static RVector createPolar (double radius, double angle)
 
static int findFirstFuzzy (const QList< RVector > &vectors, const RVector &v, double tol=RS::PointTolerance)
 
static RVector getAverage (const QList< RVector > &vectors)
 
static RVector getAverage (const RVector &v1, const RVector &v2)
 Convenience function. More...
 
static RVector getCrossProduct (const RVector &v1, const RVector &v2)
 
static double getDotProduct (const RVector &v1, const RVector &v2)
 Scalarproduct (dot product). More...
 
static RVector getMaximum (const QList< RVector > &vectors)
 
static RVector getMaximum (const RVector &v1, const RVector &v2)
 
static RVector getMaximumX (const QList< RVector > &vectors)
 
static RVector getMaximumY (const QList< RVector > &vectors)
 
static RVector getMinimum (const QList< RVector > &vectors)
 
static RVector getMinimum (const RVector &v1, const RVector &v2)
 
static RVector getMinimumX (const QList< RVector > &vectors)
 
static RVector getMinimumY (const QList< RVector > &vectors)
 
static QList< RVectorgetSortedByAngle (const QList< RVector > &list, const RVector &center, double angle)
 
static QList< RVectorgetSortedByDistance (const QList< RVector > &list, const RVector &v)
 
static QList< RVectorgetSortedLeftRightTopBottom (const QList< RVector > &list)
 
static QList< RVectorgetUnion (const QList< RVector > &vectorsA, const QList< RVector > &vectorsB, double tol=RS::PointTolerance)
 
static QList< RVectorgetUnique (const QList< RVector > &vectors, double tol=RS::PointTolerance)
 
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 greaterThanEqualXY (const RVector &v1, const RVector &v2)
 
static bool greaterThanX (const RVector &v1, const RVector &v2)
 
static bool greaterThanY (const RVector &v1, const RVector &v2)
 
static bool lessThanEqualXY (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 &center)
 
static void scaleList (QList< RVector > &list, const RVector &factors, const RVector &center=nullVector)
 
static void scaleList (QList< RVector > &list, double factor, const RVector &center=nullVector)
 

Public Attributes

bool valid
 
Getter function for this property: isValid
More...
 
double x
 
Getter function for this property: getX

Setter function for this property: setX
More...
 
double y
 
Getter function for this property: getY

Setter function for this property: setY
More...
 
double z
 
Getter function for this property: getZ

Setter function for this property: setZ
More...
 

Static Public Attributes

static const RVector invalid = RVector(0, 0, 0, false)
 invalid vector More...
 
static const RVector nanVector = RVector(RNANDOUBLE, RNANDOUBLE, RNANDOUBLE, true)
 NaN vector. More...
 
static const RVector nullVector = RVector(0, 0, 0, true)
 null vector More...
 

Detailed Description

Represents a 3d vector (x/y/z).

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n

Constructor & Destructor Documentation

◆ RVector() [1/3]

RVector::RVector ( )
inline

Constructor for a valid null vector (0/0/0).

◆ RVector() [2/3]

RVector::RVector ( double  vx,
double  vy,
double  vz = 0.0,
bool  valid_in = true 
)

Constructor for a point with given valid flag.

Parameters
vtrue: a valid vector with default coordinates is created. false: an invalid vector is created Constructor for a point with given coordinates.

◆ RVector() [3/3]

RVector::RVector ( const QList< double > &  tuples)

Member Function Documentation

◆ axonometricProjection()

RVector RVector::axonometricProjection ( RS::IsoProjectionType  type)

Axonometric projection (isometric, dimetric, trimetric).

◆ containsFuzzy()

bool RVector::containsFuzzy ( const QList< RVector > &  vectors,
const RVector v,
double  tol = RS::PointTolerance 
)
static

◆ createPolar()

static RVector RVector::createPolar ( double  radius,
double  angle 
)
inlinestatic

◆ dot()

double RVector::dot ( const RVector other) const
inline

◆ equalsFuzzy()

bool RVector::equalsFuzzy ( const RVector v,
double  tol = RS::PointTolerance 
) const
Returns
True if this vector and the given vector are almost equal (see RS::PointTolerance).
Parameters
tolTolerance in X, Y and Z.

◆ equalsFuzzy2D()

bool RVector::equalsFuzzy2D ( const RVector v,
double  tol = RS::PointTolerance 
) const
Returns
True if this vector and the given vector are almost equal (see RS::PointTolerance) in 2D space (x,y).
Parameters
tolTolerance in X, Y.

◆ findFirstFuzzy()

int RVector::findFirstFuzzy ( const QList< RVector > &  vectors,
const RVector v,
double  tol = RS::PointTolerance 
)
static

◆ flipHorizontal()

RVector RVector::flipHorizontal ( )

Mirrors this vector at the Y-axis.

◆ flipVertical()

RVector RVector::flipVertical ( )

Mirrors this vector at the X-axis.

◆ get2D()

RVector RVector::get2D ( ) const
inline

◆ getAbsolute()

RVector RVector::getAbsolute ( ) const

◆ getAngle()

double RVector::getAngle ( ) const
Returns
The angle from zero to this vector (in rad).

◆ getAngleTo()

double RVector::getAngleTo ( const RVector v) const
Returns
The angle from this and the given coordinate (in rad).

◆ getAngleToPlaneXY()

double RVector::getAngleToPlaneXY ( ) const
Returns
Angle between this vector and XY plane (horizontal plane).

◆ getAverage() [1/2]

RVector RVector::getAverage ( const QList< RVector > &  vectors)
static

◆ getAverage() [2/2]

RVector RVector::getAverage ( const RVector v1,
const RVector v2 
)
static

Convenience function.

Returns
(v1 + v2) / 2.0

◆ getCeil()

RVector RVector::getCeil ( ) const
Returns
Vector with all components ceiled to the next higher integer.

◆ getClosest()

RVector RVector::getClosest ( const QList< RVector > &  list) const
Returns
The vector in the given vectors that is closest to this vector or an invalid vector if the given vector does not contain any (valid) vectors.

◆ getClosest2D()

RVector RVector::getClosest2D ( const QList< RVector > &  list) const

◆ getClosestDistance()

double RVector::getClosestDistance ( const QList< RVector > &  list,
int  counts 
)

◆ getClosestIndex()

int RVector::getClosestIndex ( const QList< RVector > &  list,
bool  ignoreZ = false 
) const

◆ getClosestIndex2D()

int RVector::getClosestIndex2D ( const QList< RVector > &  list) const
inline

◆ getCrossProduct()

RVector RVector::getCrossProduct ( const RVector v1,
const RVector v2 
)
static
Returns
Cross product of two vectors.

◆ getDistanceTo()

double RVector::getDistanceTo ( const RVector v) const
Returns
The distance between this and the given coordinate.

◆ getDistanceTo2D()

double RVector::getDistanceTo2D ( const RVector v) const
Returns
The distance between this and the given coordinate on the XY plane.

◆ getDividedComponents()

RVector RVector::getDividedComponents ( const RVector v) const
Returns
A new vector with all components divided by the components given in vector v. Note that the division of two vectors is not defined. This is merely a helper function that does what it does.
Todo:
refactor

◆ getDotProduct()

double RVector::getDotProduct ( const RVector v1,
const RVector v2 
)
static

Scalarproduct (dot product).

◆ getFloor()

RVector RVector::getFloor ( ) const
Returns
Vector with all components floored to the next lower integer.

◆ getLerp()

RVector RVector::getLerp ( const RVector v,
double  t 
) const

Linear interpolation between this and v by fraction 't'.

◆ getMagnitude()

double RVector::getMagnitude ( ) const
Returns
Magnitude (length) of the vector.

◆ getMagnitude2D()

double RVector::getMagnitude2D ( ) const
Returns
Magnitude (length) of the vector projected to the x/y plane (2d).

◆ getMaximum() [1/2]

RVector RVector::getMaximum ( const QList< RVector > &  vectors)
static
Returns
A vector with the maximum components from the given vectors. These might be mixed components from all vectors.

◆ getMaximum() [2/2]

RVector RVector::getMaximum ( const RVector v1,
const RVector v2 
)
static
Returns
A vector with the maximum values from the vectors v1 and v2

◆ getMaximumX()

RVector RVector::getMaximumX ( const QList< RVector > &  vectors)
static
Returns
That one vector from the given vectors with the largest X coordinate.

◆ getMaximumY()

RVector RVector::getMaximumY ( const QList< RVector > &  vectors)
static
Returns
That one vector from the given vectors with the largest Y coordinate.

◆ getMinimum() [1/2]

RVector RVector::getMinimum ( const QList< RVector > &  vectors)
static
Returns
A vector with the minimum components from the given vectors. These might be mixed components from all vectors.

◆ getMinimum() [2/2]

RVector RVector::getMinimum ( const RVector v1,
const RVector v2 
)
static
Returns
A vector with the minimum components from the vectors v1 and v2. These might be mixed components from both vectors.

◆ getMinimumX()

RVector RVector::getMinimumX ( const QList< RVector > &  vectors)
static
Returns
That one vector from the given vectors with the smallest X coordinate.

◆ getMinimumY()

RVector RVector::getMinimumY ( const QList< RVector > &  vectors)
static
Returns
That one vector from the given vectors with the smallest Y coordinate.

◆ getMirrored()

RVector RVector::getMirrored ( const RLine axis) const

◆ getMultipliedComponents()

RVector RVector::getMultipliedComponents ( const RVector v) const
Returns
A new vector with all components multiplied by the components given in vector v. Note that the multiplication of two vectors is not defined. This is merely a helper function that does what it does.
Todo:
refactor

◆ getNegated()

RVector RVector::getNegated ( ) const
Returns
New vector with negated components.

◆ getNormalized()

RVector RVector::getNormalized ( ) const
Returns
A new unit vector with the same direction as this vector.

◆ getRotated()

RVector RVector::getRotated ( double  rotation,
const RVector center 
) const

◆ getScaled()

RVector RVector::getScaled ( const RVector factors,
const RVector center 
) const

◆ getSortedByAngle()

QList< RVector > RVector::getSortedByAngle ( const QList< RVector > &  list,
const RVector center,
double  angle 
)
static
Returns
List of same vectors as given, ordered by shortes angle difference to given reference angle.

◆ getSortedByDistance()

QList< RVector > RVector::getSortedByDistance ( const QList< RVector > &  list,
const RVector v 
)
static
Returns
List of same vectors as given, ordered by shortes distance to given vector v.

◆ getSortedLeftRightTopBottom()

QList< RVector > RVector::getSortedLeftRightTopBottom ( const QList< RVector > &  list)
static
Returns
List of same vectors as given, ordered from left to right, top to bottom.

◆ getSquaredMagnitude()

double RVector::getSquaredMagnitude ( ) const
Returns
Square of magnitude (length).

◆ getTransformed()

RVector RVector::getTransformed ( const RMatrix m) const
Returns
A new vector which is the result of this vector transformed by the given matrix.

◆ getTransformed2D()

RVector RVector::getTransformed2D ( const QTransform &  t) const
Returns
A new vector which is the result of this vector transformed by the given transformation matrix.

◆ getTransformed2DM()

RVector RVector::getTransformed2DM ( const RMatrix m) const
Returns
A new vector which is the result of this vector transformed by the given matrix.

◆ getUnion()

QList< RVector > RVector::getUnion ( const QList< RVector > &  vectorsA,
const QList< RVector > &  vectorsB,
double  tol = RS::PointTolerance 
)
static
Returns
Union based on fuzzy comparison.

◆ getUnique()

QList< RVector > RVector::getUnique ( const QList< RVector > &  vectors,
double  tol = RS::PointTolerance 
)
static

◆ getUnitVector()

RVector RVector::getUnitVector ( ) const
Returns
Unit vector for this vector.

◆ getX()

double RVector::getX ( )

◆ getXList()

QList< double > RVector::getXList ( const QList< RVector > &  vectors)
static
Returns
All X values of the given list of vectors as a new list.

◆ getY()

double RVector::getY ( )

◆ getYList()

QList< double > RVector::getYList ( const QList< RVector > &  vectors)
static
Returns
All Y values of the given list of vectors as a new list.

◆ getZ()

double RVector::getZ ( )

◆ getZList()

QList< double > RVector::getZList ( const QList< RVector > &  vectors)
static
Returns
All Z values of the given list of vectors as a new list.

◆ greaterThanEqualXY()

static bool RVector::greaterThanEqualXY ( const RVector v1,
const RVector v2 
)
inlinestatic

◆ greaterThanX()

static bool RVector::greaterThanX ( const RVector v1,
const RVector v2 
)
inlinestatic

◆ greaterThanY()

static bool RVector::greaterThanY ( const RVector v1,
const RVector v2 
)
inlinestatic

◆ gteXY()

bool RVector::gteXY ( const RVector v) const
inline

◆ isInside()

bool RVector::isInside ( const RBox b) const
Returns
True if this vector is inside the given box, false otherwise.

◆ isInWindow()

bool RVector::isInWindow ( const RVector firstCorner,
const RVector secondCorner 
)
Returns
true if this vector is within the given range (2d).

◆ isNaN()

bool RVector::isNaN ( ) const

◆ isoProject()

RVector RVector::isoProject ( RS::IsoProjectionType  type)

Changes this vector into its isometric projection.

Todo:
refactor

◆ isSane()

bool RVector::isSane ( ) const

◆ isValid()

bool RVector::isValid ( ) const

◆ isZero()

bool RVector::isZero ( ) const

◆ lessThanEqualXY()

static bool RVector::lessThanEqualXY ( const RVector v1,
const RVector v2 
)
inlinestatic

◆ lessThanX()

static bool RVector::lessThanX ( const RVector v1,
const RVector v2 
)
inlinestatic

◆ lessThanY()

static bool RVector::lessThanY ( const RVector v1,
const RVector v2 
)
inlinestatic

◆ lteXY()

bool RVector::lteXY ( const RVector v) const
inline

◆ mirror() [1/2]

RVector RVector::mirror ( const RLine axis)

Mirrors this vector at the given axis.

◆ mirror() [2/2]

RVector RVector::mirror ( const RVector axis1,
const RVector axis2 
)

◆ move()

RVector RVector::move ( const RVector offset)

Moves this vector by the given offset.

Equal to the operator +=.

◆ moveList()

void RVector::moveList ( QList< RVector > &  list,
const RVector offset 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ normalize()

RVector RVector::normalize ( )

Normalizes this vector and returns a reference to this vector.

◆ obliqueProjection()

RVector RVector::obliqueProjection ( RS::IsoProjectionType  type)

◆ operator!=()

bool RVector::operator!= ( const RVector v) const
inline

◆ operator*()

RVector RVector::operator* ( double  s) const

binary * operator.

◆ operator*=()

void RVector::operator*= ( double  s)

*= operator

◆ operator+()

RVector RVector::operator+ ( const RVector v) const

binary + operator.

◆ operator+=()

void RVector::operator+= ( const RVector v)

+= operator.

The result is only valid if both vectors are valid.

◆ operator-() [1/2]

RVector RVector::operator- ( ) const

unary - operator.

◆ operator-() [2/2]

RVector RVector::operator- ( const RVector v) const

binary - operator.

◆ operator-=()

void RVector::operator-= ( const RVector v)

-= operator.

The result is only valid if both vectors are valid.

◆ operator/()

RVector RVector::operator/ ( double  s) const

binary / operator.

◆ operator/=()

void RVector::operator/= ( double  s)

/= operator

◆ operator==()

bool RVector::operator== ( const RVector v) const

== operator

◆ rotate() [1/2]

RVector RVector::rotate ( double  rotation)

Rotates this vector around 0/0 by the given angle.

◆ rotate() [2/2]

RVector RVector::rotate ( double  rotation,
const RVector center 
)

Rotates this vector around the given center by the given angle.

◆ rotate3D() [1/2]

RVector RVector::rotate3D ( const QQuaternion &  quaternion)

◆ rotate3D() [2/2]

RVector RVector::rotate3D ( const RLine axis,
double  rotation 
)

◆ rotateList() [1/2]

void RVector::rotateList ( QList< RVector > &  list,
double  rotation 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ rotateList() [2/2]

void RVector::rotateList ( QList< RVector > &  list,
double  rotation,
const RVector center 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ scale() [1/2]

RVector RVector::scale ( const RVector factors,
const RVector center = nullVector 
)

Scales this vector by the given factors with the given center.

◆ scale() [2/2]

RVector RVector::scale ( double  factor,
const RVector center = nullVector 
)

Scales this vector by the given factor with the given center.

◆ scaleList() [1/2]

void RVector::scaleList ( QList< RVector > &  list,
const RVector factors,
const RVector center = nullVector 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ scaleList() [2/2]

void RVector::scaleList ( QList< RVector > &  list,
double  factor,
const RVector center = nullVector 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ set()

void RVector::set ( double  vx,
double  vy,
double  vz = 0.0 
)
inline

Sets new values for the vector and makes the vector valid.

◆ setAngle()

void RVector::setAngle ( double  a)

◆ setMagnitude2D()

void RVector::setMagnitude2D ( double  m)

Sets the vector magnitude without changing the direction.

◆ setPolar()

void RVector::setPolar ( double  radius,
double  angle 
)

Sets a new position for the vector in polar coordinates.

Parameters
radiusthe radius or the distance
anglethe angle in rad

◆ setX()

void RVector::setX ( double  x)

◆ setY()

void RVector::setY ( double  y)

◆ setZ()

void RVector::setZ ( double  z)

◆ stretch()

RVector RVector::stretch ( const RPolyline area,
const RVector offset 
)

Moves this vector by offset if it is inside the given area.

◆ transform()

RVector RVector::transform ( const RMatrix m)

Generic 3d transformation.

m must be a 3x3 matrix.

◆ transform2D()

RVector RVector::transform2D ( const QTransform &  t)

Transforms this vector with the given transformation matrix.

◆ transform2DM()

RVector RVector::transform2DM ( const RMatrix m)

Generic 2d transformation.

m must be a 3x2 matrix.

Member Data Documentation

◆ invalid

const RVector RVector::invalid = RVector(0, 0, 0, false)
static

invalid vector

Copyright (c) 2011-2018 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

◆ nanVector

const RVector RVector::nanVector = RVector(RNANDOUBLE, RNANDOUBLE, RNANDOUBLE, true)
static

NaN vector.

◆ nullVector

const RVector RVector::nullVector = RVector(0, 0, 0, true)
static

null vector

◆ valid

bool RVector::valid


Getter function for this property: isValid

◆ x

double RVector::x


Getter function for this property: getX

Setter function for this property: setX

◆ y

double RVector::y


Getter function for this property: getY

Setter function for this property: setY

◆ z

double RVector::z


Getter function for this property: getZ

Setter function for this property: setZ


The documentation for this class was generated from the following files: