Base: fix bug in CoordinateSystem::setYDirection

This commit is contained in:
wmayer
2023-07-13 15:10:46 +02:00
committed by wwmayer
parent 8e6fbd2886
commit 4688582de3

View File

@@ -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;