Sensor Scol plugin
Multi platform sensors for handled devices
|
Public Member Functions | |
Vector3d (double x, double y, double z) | |
Vector3d (const Vector3d &other) | |
void | set (double x, double y, double z) |
void | setComponent (int i, double val) |
void | setZero () |
void | set (Vector3d other) |
void | scale (double s) |
void | normalize () |
double | length () |
bool | sameValues (Vector3d other) |
double | getX () const |
double | getY () const |
double | getZ () const |
Vector3d | CrossProduct (Vector3d other) |
Vector3d | operator- () |
Vector3d | operator+= (Vector3d other) |
Vector3d | operator-= (Vector3d other) |
Vector3d | operator*= (float scalar) |
Vector3d | operator/= (float scalar) |
Static Public Member Functions | |
static double | dot (Vector3d a, Vector3d b) |
static void | add (Vector3d a, Vector3d b, Vector3d &result) |
static void | sub (Vector3d a, Vector3d b, Vector3d &result) |
static void | cross (Vector3d a, Vector3d b, Vector3d &result) |
static void | ortho (Vector3d v, Vector3d &result) |
static int | largestAbsComponent (Vector3d v) |
Data Fields | |
double | x |
double | y |
double | z |
Friends | |
class | Matrix3x3d |
class | SO3Util |
Definition at line 8 of file Vector3d.h.
Vector3d | ( | ) |
Definition at line 6 of file Vector3d.cpp.
Vector3d | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 16 of file Vector3d.cpp.
Definition at line 11 of file Vector3d.cpp.
Definition at line 85 of file Vector3d.cpp.
Definition at line 99 of file Vector3d.cpp.
Definition at line 36 of file Vector3d.h.
Definition at line 70 of file Vector3d.cpp.
|
inline |
Definition at line 32 of file Vector3d.h.
|
inline |
Definition at line 33 of file Vector3d.h.
|
inline |
Definition at line 34 of file Vector3d.h.
|
static |
Definition at line 119 of file Vector3d.cpp.
double length | ( | ) |
Definition at line 75 of file Vector3d.cpp.
void normalize | ( | ) |
Definition at line 61 of file Vector3d.cpp.
|
inline |
Definition at line 56 of file Vector3d.h.
Definition at line 46 of file Vector3d.h.
|
inline |
Definition at line 41 of file Vector3d.h.
Definition at line 51 of file Vector3d.h.
|
inline |
Definition at line 61 of file Vector3d.h.
Definition at line 106 of file Vector3d.cpp.
bool sameValues | ( | Vector3d | other | ) |
Definition at line 80 of file Vector3d.cpp.
void scale | ( | double | s | ) |
Definition at line 54 of file Vector3d.cpp.
void set | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 21 of file Vector3d.cpp.
void set | ( | Vector3d | other | ) |
Definition at line 49 of file Vector3d.cpp.
void setComponent | ( | int | i, |
double | val | ||
) |
Definition at line 28 of file Vector3d.cpp.
void setZero | ( | ) |
Definition at line 44 of file Vector3d.cpp.
Definition at line 92 of file Vector3d.cpp.
|
friend |
Definition at line 10 of file Vector3d.h.
|
friend |
Definition at line 11 of file Vector3d.h.
double x |
Definition at line 66 of file Vector3d.h.
double y |
Definition at line 67 of file Vector3d.h.
double z |
Definition at line 68 of file Vector3d.h.