Blender
V3.3
|
#include <frames.hpp>
Public Member Functions | |
Vector2 () | |
Does not initialise to Zero(). More... | |
Vector2 (double x, double y) | |
Vector2 (const Vector2 &arg) | |
Vector2 (double *xyz) | |
Vector2 (float *xyz) | |
Vector2 & | operator= (const Vector2 &arg) |
double | operator() (int index) const |
Access to elements, range checked when NDEBUG is not set, from 0..1. More... | |
double & | operator() (int index) |
Access to elements, range checked when NDEBUG is not set, from 0..1. More... | |
void | GetValue (double *xy) const |
store vector components in array More... | |
void | ReverseSign () |
Vector2 & | operator-= (const Vector2 &arg) |
Vector2 & | operator+= (const Vector2 &arg) |
double | Normalize (double eps=epsilon) |
double | Norm () const |
void | Set3DXY (const Vector &v) |
projects v in its XY plane, and sets *this to these values More... | |
void | Set3DYZ (const Vector &v) |
projects v in its YZ plane, and sets *this to these values More... | |
void | Set3DZX (const Vector &v) |
projects v in its ZX plane, and sets *this to these values More... | |
void | Set3DPlane (const Frame &F_someframe_XY, const Vector &v_someframe) |
Static Public Member Functions | |
static Vector2 | Zero () |
Friends | |
class | Rotation2 |
Vector2 | operator* (const Vector2 &lhs, double rhs) |
Vector2 | operator* (double lhs, const Vector2 &rhs) |
Vector2 | operator/ (const Vector2 &lhs, double rhs) |
Vector2 | operator+ (const Vector2 &lhs, const Vector2 &rhs) |
Vector2 | operator- (const Vector2 &lhs, const Vector2 &rhs) |
Vector2 | operator* (const Vector2 &lhs, const Vector2 &rhs) |
Vector2 | operator- (const Vector2 &arg) |
void | SetToZero (Vector2 &v) |
bool | Equal (const Vector2 &a, const Vector2 &b, double eps) |
2D version of Vector
Definition at line 915 of file frames.hpp.
|
inline |
Does not initialise to Zero().
Definition at line 920 of file frames.hpp.
References data.
Referenced by Normalize(), and Zero().
Definition at line 764 of file frames.inl.
Definition at line 758 of file frames.inl.
|
inline |
|
inline |
store vector components in array
Definition at line 786 of file frames.inl.
References xy.
Referenced by GetJointRotation().
|
inline |
Definition at line 87 of file frames.cpp.
References fabs(), KDL::sqr(), and KDL::sqrt().
Referenced by Normalize().
Normalizes this vector and returns it norm makes v a unitvector and returns the norm of v. if v is smaller than eps, Vector(1,0,0) is returned with norm 0. if this is not good, check the return value of this method.
Definition at line 102 of file frames.cpp.
References eps, Norm(), v, and Vector2().
Referenced by KDL::Rotation::GetXZRot().
Access to elements, range checked when NDEBUG is not set, from 0..1.
Definition at line 839 of file frames.inl.
References FRAMES_CHECKI.
Access to elements, range checked when NDEBUG is not set, from 0..1.
Definition at line 834 of file frames.inl.
References FRAMES_CHECKI.
Definition at line 816 of file frames.inl.
Definition at line 823 of file frames.inl.
Definition at line 779 of file frames.inl.
Definition at line 844 of file frames.inl.
Referenced by KDL::Frame2::SetInverse().
|
inline |
projects v_someframe in the XY plane of F_someframe_XY, and sets *this to these values expressed wrt someframe.
Definition at line 876 of file frames.inl.
References KDL::Frame::Inverse().
projects v in its XY plane, and sets *this to these values
Definition at line 857 of file frames.inl.
References v.
projects v in its YZ plane, and sets *this to these values
Definition at line 863 of file frames.inl.
References v.
projects v in its ZX plane, and sets *this to these values
Definition at line 869 of file frames.inl.
References v.
Definition at line 830 of file frames.inl.
References Vector2().
Referenced by KDL::Frame2::Frame2(), KDL::Frame2::SetIdentity(), and SetToZero().
do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval
|
friend |
Definition at line 983 of file frames.hpp.