Skip to content

rtm/qvsf.h

#include "rtm/qvsf.h"

qvs_cast

vqsf qvs_cast(vqsd input)

Casts a VQS transform float64 variant to a float32 variant.

Deprecated

Use 'vqs_cast' instead. To be removed in 2.5.

qvs_from_matrix

vqsf qvs_from_matrix(matrix3x3f input)

Converts a rotation 3x3 matrix into a VQS transform.

Deprecated

Use 'vqs_from_matrix' instead. To be removed in 2.5.

vqsf qvs_from_matrix(matrix3x4f 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

quatf qvs_get_rotation(vqsf input)

Returns the rotation part of a VQS transform.

Deprecated

Use 'vqs_get_rotation' instead. To be removed in 2.5.

qvs_get_translation

vector4f qvs_get_translation(vqsf input)

Returns the translation part of a VQS transform.

Deprecated

Use 'vqs_get_translation' instead. To be removed in 2.5.

qvs_get_scale

float qvs_get_scale(vqsf input)

Returns the scale part of a VQS transform.

Deprecated

Use 'vqs_get_scale' instead. To be removed in 2.5.

qvs_mul

vqsf qvs_mul(vqsf lhs, vqsf rhs)

Multiplies two VQS transforms.

Deprecated

Use 'vqs_mul' instead. To be removed in 2.5.

qvs_mul_no_scale

vqsf qvs_mul_no_scale(vqsf lhs, vqsf rhs)

Multiplies two VQS transforms ignoring scale.

Deprecated

Use 'vqs_mul_no_scale' instead. To be removed in 2.5.

qvs_mul_point3

vector4f qvs_mul_point3(vector4f point, vqsf 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

vector4f qvs_mul_point3_no_scale(vector4f point, vqsf 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

vqsf qvs_inverse(vqsf input)

Returns the inverse of the input VQS transform.

Deprecated

Use 'vqs_inverse' instead. To be removed in 2.5.

vqsf qvs_inverse(vqsf input, float fallback_scale, float threshold=1.0E-8F)

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

vqsf qvs_inverse_no_scale(vqsf 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

vqsf qvs_normalize(vqsf input)

Returns a VQS transform with the rotation part normalized.

Deprecated

Use 'vqs_normalize' instead. To be removed in 2.5.

qvs_lerp

vqsf qvs_lerp(vqsf start, vqsf end, float 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

vqsf qvs_lerp_no_scale(vqsf start, vqsf end, float 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

vqsf qvs_slerp(vqsf start, vqsf end, float 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

vqsf qvs_slerp_no_scale(vqsf start, vqsf end, float 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(vqsf 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

vqsf qvs_set(quatf rotation, vector4f translation, float 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.