Template Struct CoordinateTransform

Struct Documentation

template<typename T>
struct CoordinateTransform

Stores information to transform a 3D point into a different coordinate system. It is assumed, that the coordinate called x is refered to as coordinate 0, y is 1 and z is 2.

Public Functions

inline CoordinateTransform(const unsigned char &_x = 0, const unsigned char &_y = 1, const unsigned char &_z = 2, const T &_sx = 1.0, const T &_sy = 1.0, const T &_sz = 1.0)
inline bool transforms()

Returns true, if the saved information actually is a transform. False only, if the default values are used.

Public Members

unsigned char x

Position of the x coordinate in the target system.

unsigned char y

Position of the y coordinate in the target system.

unsigned char z

Position of the z coordinate in the target system.

T sx

Scale factor of the x coordinate in the source system to match the target systems’ scale

T sy

Scale factor of the y coordinate in the source system to match the target systems’ scale

T sz

Scale factor of the y coordinate in the source system to match the target systems’ scale