Skip to content

rtm/qvd.h

#include "rtm/qvd.h"

qv_cast

vqd qv_cast(vqf input)

Casts a VQ transform float32 variant to a float64 variant.

Deprecated

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

qv_from_matrix

vqd qv_from_matrix(matrix3x3d input)

Converts a rotation 3x3 matrix into a VQ transform.

Deprecated

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

vqd qv_from_matrix(matrix3x4d input)

Converts a rotation 3x4 affine matrix into a VQ transform.

Deprecated

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

qv_mul

vqd qv_mul(vqd lhs, vqd rhs)

Multiplies two VQ transforms.

Deprecated

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

qv_mul_point3

vector4d qv_mul_point3(vector4d point, vqd vq)

Multiplies a VQ transform and a 3D point.

Deprecated

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

qv_inverse

vqd qv_inverse(vqd input)

Returns the inverse of the input VQ transform.

Deprecated

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

qv_normalize

vqd qv_normalize(vqd input)

Returns a VQ transform with the rotation part normalized.

Deprecated

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

qv_lerp

vqd qv_lerp(vqd start, vqd end, double alpha)

Per component linear interpolation of the two inputs at the specified alpha.

Deprecated

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

qv_slerp

vqd qv_slerp(vqd start, vqd end, double alpha)

Per component spherical interpolation of the two inputs at the specified alpha.

Deprecated

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

qv_is_finite

bool qv_is_finite(vqd input)

Returns true if the input VQ does not contain any NaN or Inf, otherwise false.

Deprecated

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

qv_set

constexpr vqd qv_set(quatd rotation, vector4d translation)

Creates a VQ transform from a rotation quaternion and a translation.

Deprecated

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

qv_identity

vqd qv_identity()

Returns the identity VQ transform.

Deprecated

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

The return value also converts to vqf.