rtm/qvsd.h¶
#include "rtm/qvsd.h"
qvs_cast¶
vqsd qvs_cast(vqsf input)
Casts a VQS transform float32 variant to a float64 variant.
Deprecated
Use 'vqs_cast' instead. To be removed in 2.5.
qvs_from_matrix¶
vqsd qvs_from_matrix(matrix3x3d input)
Converts a rotation 3x3 matrix into a VQS transform.
Deprecated
Use 'vqs_from_matrix' instead. To be removed in 2.5.
vqsd qvs_from_matrix(matrix3x4d input)
Converts a rotation 3x4 affine matrix into a VQS transform.
Deprecated
Use 'vqs_from_matrix' instead. To be removed in 2.5.
qvs_get_rotation¶
quatd qvs_get_rotation(vqsd input)
Returns the rotation part of a VQS transform.
Deprecated
Use 'vqs_get_rotation' instead. To be removed in 2.5.
qvs_get_translation¶
vector4d qvs_get_translation(vqsd input)
Returns the translation part of a VQS transform.
Deprecated
Use 'vqs_get_translation' instead. To be removed in 2.5.
qvs_get_scale¶
double qvs_get_scale(vqsd input)
Returns the scale part of a VQS transform.
Deprecated
Use 'vqs_get_scale' instead. To be removed in 2.5.
qvs_mul¶
vqsd qvs_mul(vqsd lhs, vqsd rhs)
Multiplies two VQS transforms.
Deprecated
Use 'vqs_mul' instead. To be removed in 2.5.
qvs_mul_no_scale¶
vqsd qvs_mul_no_scale(vqsd lhs, vqsd rhs)
Multiplies two VQS transforms ignoring scale.
Deprecated
Use 'vqs_mul_no_scale' instead. To be removed in 2.5.
qvs_mul_point3¶
vector4d qvs_mul_point3(vector4d point, vqsd vqs)
Multiplies a VQS transform and a 3D point.
Deprecated
Use 'vqs_mul_point3' instead. To be removed in 2.5.
qvs_mul_point3_no_scale¶
vector4d qvs_mul_point3_no_scale(vector4d point, vqsd vqs)
Multiplies a VQS transform and a 3D point ignoring 3D scale.
Deprecated
Use 'vqs_mul_point3_no_scale' instead. To be removed in 2.5.
qvs_inverse¶
vqsd qvs_inverse(vqsd input)
Returns the inverse of the input VQS transform.
Deprecated
Use 'vqs_inverse' instead. To be removed in 2.5.
vqsd qvs_inverse(vqsd input, double fallback_scale, double threshold=1.0E-8)
Returns the inverse of the input VQS transform with a fallback scale.
Deprecated
Use 'vqs_inverse' instead. To be removed in 2.5.
qvs_inverse_no_scale¶
vqsd qvs_inverse_no_scale(vqsd input)
Returns the inverse of the input VQS transform ignoring 3D scale.
Deprecated
Use 'vqs_inverse_no_scale' instead. To be removed in 2.5.
qvs_normalize¶
vqsd qvs_normalize(vqsd input)
Returns a VQS transform with the rotation part normalized.
Deprecated
Use 'vqs_normalize' instead. To be removed in 2.5.
qvs_lerp¶
vqsd qvs_lerp(vqsd start, vqsd end, double alpha)
Per component linear interpolation of the two inputs at the specified alpha.
Deprecated
Use 'vqs_lerp' instead. To be removed in 2.5.
qvs_lerp_no_scale¶
vqsd qvs_lerp_no_scale(vqsd start, vqsd end, double alpha)
Per component linear interpolation of the two inputs at the specified alpha, without the scale.
Deprecated
Use 'vqs_lerp_no_scale' instead. To be removed in 2.5.
qvs_slerp¶
vqsd qvs_slerp(vqsd start, vqsd end, double alpha)
Per component spherical interpolation of the two inputs at the specified alpha.
Deprecated
Use 'vqs_slerp' instead. To be removed in 2.5.
qvs_slerp_no_scale¶
vqsd qvs_slerp_no_scale(vqsd start, vqsd end, double alpha)
Per component spherical interpolation of the two inputs at the specified alpha, without the scale.
Deprecated
Use 'vqs_slerp_no_scale' instead. To be removed in 2.5.
qvs_is_finite¶
bool qvs_is_finite(vqsd input)
Returns true if the input VQS does not contain any NaN or Inf, otherwise false.
Deprecated
Use 'vqs_is_finite' instead. To be removed in 2.5.
qvs_set¶
vqsd qvs_set(quatd rotation, vector4d translation, double scale)
Creates a VQS transform from a rotation quaternion, a translation, and scalar scale.
Deprecated
Use 'vqs_set' instead. To be removed in 2.5.
qvs_identity¶
vqsd qvs_identity()
Returns the identity VQS transform.
Deprecated
Use 'vqs_identity' instead. To be removed in 2.5.
The return value also converts to vqsf.