Commit 62a54a66 authored by POLLIEN Baptiste's avatar POLLIEN Baptiste
Browse files

Update asserts

parent 3518d568
......@@ -270,24 +270,24 @@ void float_rmat_of_quat(struct FloatRMat *rm, struct FloatQuat *q)
const float bc = _2b * _c;
const float bd = _2b * _d;
const float cd = _c * _2d;
//@assert \at(q->qi, Pre) == q->qi;
//@assert \at(q->qx, Pre) == q->qx;
//@assert \at(q->qy, Pre) == q->qy;
//@assert \at(q->qz, Pre) == q->qz;
//@ assert \at(q->qi, Pre) == q->qi;
//@ assert \at(q->qx, Pre) == q->qx;
//@ assert \at(q->qy, Pre) == q->qy;
//@ assert \at(q->qz, Pre) == q->qz;
RMAT_ELMT(*rm, 0, 0) = a2_1 + _2b * _b;
RMAT_ELMT(*rm, 0, 1) = bc + ad;
RMAT_ELMT(*rm, 0, 2) = bd - ac;
RMAT_ELMT(*rm, 1, 0) = bc - ad;
RMAT_ELMT(*rm, 1, 1) = a2_1 + 2 * _c * _c;
//@assert \at(q->qi, Pre) == q->qi;
//@ assert \at(q->qi, Pre) == q->qi;
RMAT_ELMT(*rm, 1, 2) = cd + ab;
RMAT_ELMT(*rm, 2, 0) = bd + ac;
RMAT_ELMT(*rm, 2, 1) = cd - ab;
RMAT_ELMT(*rm, 2, 2) = a2_1 + _2d * _d;
//@assert \at(q->qi, Pre) == q->qi;
//@assert \at(q->qx, Pre) == q->qx;
//@assert \at(q->qy, Pre) == q->qy;
//@assert \at(q->qz, Pre) == q->qz;
//@ assert \at(q->qi, Pre) == q->qi;
//@ assert \at(q->qx, Pre) == q->qx;
//@ assert \at(q->qy, Pre) == q->qy;
//@ assert \at(q->qz, Pre) == q->qz;
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment