Home
last modified time | relevance | path

Searched refs:qs (Results 1 – 3 of 3) sorted by relevance

/zscilib-3.4.0/src/orientation/
Dquaternions.c101 int zsl_quat_scale(struct zsl_quat *q, zsl_real_t s, struct zsl_quat *qs) in zsl_quat_scale() argument
105 qs->r = q->r * s; in zsl_quat_scale()
106 qs->i = q->i * s; in zsl_quat_scale()
107 qs->j = q->j * s; in zsl_quat_scale()
108 qs->k = q->k * s; in zsl_quat_scale()
/zscilib-3.4.0/include/zsl/orientation/
Dquaternions.h220 int zsl_quat_scale(struct zsl_quat *q, zsl_real_t s, struct zsl_quat *qs);
/zscilib-3.4.0/tests/src/
Dorientation_tests.c328 struct zsl_quat qs; in ZTEST() local
330 zsl_quat_init(&qs, ZSL_QUAT_TYPE_EMPTY); in ZTEST()
332 rc = zsl_quat_scale(&q, 0.5, &qs); in ZTEST()
334 zassert_true(val_is_equal(qs.r, q.r / 2.0, 1E-6), NULL); in ZTEST()
335 zassert_true(val_is_equal(qs.i, q.i / 2.0, 1E-6), NULL); in ZTEST()
336 zassert_true(val_is_equal(qs.j, q.j / 2.0, 1E-6), NULL); in ZTEST()
337 zassert_true(val_is_equal(qs.k, q.k / 2.0, 1E-6), NULL); in ZTEST()