10#include <QtCore/QtGlobal>
56 void SetX(
double value);
64 void SetY(
double value);
72 void SetZ(
double value);
182 return *
this + vector;
222 if (qAbs(scalar) < I_BIG_EPSILON){
223 scalar = (scalar > 0)? I_BIG_EPSILON: -I_BIG_EPSILON;
Definition of position or mathematical vector on 2D plane.
double GetY() const
Get Y position of this vector.
double GetX() const
Get X position of this vector.
Definition of position or mathematical vector in 3D space.
void SetZ(double value)
Set Y position of this vector.
CVector3d operator*(double scalar) const
CVector3d()
Default constructor.
bool Serialize(iser::IArchive &archive)
Serialize this vector to specified archive.
CVector3d & operator/=(double scalar)
double GetX() const
Get X position of this vector.
void SetX(double value)
Set X position of this vector.
double GetY() const
Get Y position of this vector.
CVector3d & operator*=(double scalar)
CVector3d GetTranslated(const imath::TVector< 3 > &vector)
Get translated point.
double GetZ() const
Get Y position of this vector.
i2d::CVector2d GetPlaneCasted() const
Get XY part of this 3D vector.
CVector3d & operator-=(const imath::TVector< 3 > &vector)
imath::TVector< 3 > BaseClass
CVector3d operator+(const imath::TVector< 3 > &vector) const
CVector3d operator-() const
CVector3d & operator+=(const imath::TVector< 3 > &vector)
CVector3d operator/(double scalar) const
void SetY(double value)
Set Y position of this vector.
CVector3d GetNormalized(double length=1.0) const
Return normalized vector with the same direction and specified length.
CVector3d GetCrossProduct(const imath::TVector< 3 > &vector) const
Return Z coordinate of two vectors cross product.
Implementation of fixed-size mathematical vector with specified type of elements.
const double & operator[](int i) const
TVector< Size, double > & operator+=(const TVector< Size, double > &vector)
TVector< Size, double > & operator/=(double scalar)
TVector< Size, double > & operator-=(const TVector< Size, double > &vector)
TVector< Size, double > & operator*=(double scalar)
TVector< Size, double > GetTranslated(const TVector< Size, double > &vector)
bool GetNormalized(TVector< Size, double > &result, double length=1.0) const
Represent input/output persistence archive.