dAcArrow_c 99%

This commit is contained in:
robojumper
2026-05-23 22:58:30 +02:00
parent 483ac7b934
commit 916f07e286
12 changed files with 1098 additions and 119 deletions
+14
View File
@@ -26,4 +26,18 @@ inline mVec3_c vec2ToVec3XY(const mVec2_c &v) {
return mVec3_c(v.x, v.y, 0.0f);
}
/**
* @brief Computes left x right
*
* @param result the result
* @param left left operant
* @param right right operand
*/
inline void vecCross(mVec3_c &result, const mVec3_c &left, const mVec3_c &right) {
result.set(
(left.y * right.z) - (left.z * right.y), (left.z * right.x) - (left.x * right.z),
(left.x * right.y) - (left.y * right.x)
);
}
#endif