From 0c612f40f6a190973e522e3ff32e4773ffc2ed42 Mon Sep 17 00:00:00 2001 From: Revar Desmera <revarbat@gmail.com> Date: Sat, 20 Jun 2020 21:31:38 -0700 Subject: [PATCH] Added regression for Q_Cumulative() --- tests/test_quaternions.scad | 6 ++++++ version.scad | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_quaternions.scad b/tests/test_quaternions.scad index 44eb85e..b9b232f 100644 --- a/tests/test_quaternions.scad +++ b/tests/test_quaternions.scad @@ -178,6 +178,12 @@ module test_Q_Mul() { test_Q_Mul(); +module test_Q_Cumulative() { + verify_f(Q_Cumulative([QuatZ(30),QuatX(57),QuatY(18)]),[[0, 0, 0.2588190451, 0.9659258263], [0.4608999698, -0.1234977747, 0.2274546059, 0.8488721457], [0.4908072659, 0.01081554785, 0.1525536221, 0.8577404293]]); +} +test_Q_Cumulative(); + + module test_Q_Dot() { verify_f(Q_Dot(QuatZ(30),QuatX(57)),0.8488721457); verify_f(Q_Dot(QuatY(30),QuatZ(23)),0.94653458); diff --git a/version.scad b/version.scad index a3ff100..de50e10 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,360]; +BOSL_VERSION = [2,0,361]; // Section: BOSL Library Version Functions