From fa6ee296fcf1692f252c180bfc960899f0e474d9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 13 Jul 2023 15:10:46 +0200 Subject: [PATCH] Base: fix bug in CoordinateSystem::setYDirection --- src/Base/CoordinateSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/CoordinateSystem.cpp b/src/Base/CoordinateSystem.cpp index f1f6c35f7f..bd61263cd1 100644 --- a/src/Base/CoordinateSystem.cpp +++ b/src/Base/CoordinateSystem.cpp @@ -88,7 +88,7 @@ void CoordinateSystem::setXDirection(const Vector3d& dir) void CoordinateSystem::setYDirection(const Vector3d& dir) { - Vector3d xd = dir & axis.getDirection(); + Vector3d xd = dir % axis.getDirection(); if (xd.Sqr() < Base::Vector3d::epsilon()) throw Base::ValueError("Direction is parallel to Z direction"); xdir = xd;