From 67850c46376e8ab1b5a6c8d12e540c0f5df2a9f4 Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Tue, 26 Dec 2023 10:43:34 +0800 Subject: [PATCH] remove cos change to address one problem at a time Signed-off-by: Arjo Chakravarty --- src/systems/lift_drag/LiftDrag.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/lift_drag/LiftDrag.cc b/src/systems/lift_drag/LiftDrag.cc index 062ae48b28..b16766e6a0 100644 --- a/src/systems/lift_drag/LiftDrag.cc +++ b/src/systems/lift_drag/LiftDrag.cc @@ -328,7 +328,7 @@ void LiftDragPrivate::Update(EntityComponentManager &_ecm) spanwiseI.Dot(velI), minRatio, maxRatio); // get cos from trig identity - double cosSweepAngle = 1.0 - sinSweepAngle * sinSweepAngle; + double cosSweepAngle = sqrt(1.0 - sinSweepAngle * sinSweepAngle); double sweep = std::asin(sinSweepAngle); // truncate sweep to within +/-90 deg