From 69772d02f0190ce059d872ca487b42c68e694b05 Mon Sep 17 00:00:00 2001 From: Henrique Ferrolho Date: Fri, 8 Nov 2024 11:28:46 +0000 Subject: [PATCH] Revert "Use numerically robust norm" This reverts commit 10de215a4017aeb3c967988fbdd5ef865b4937a1. --- src/spatial/threevectors.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spatial/threevectors.jl b/src/spatial/threevectors.jl index 213bb375..d8eae288 100644 --- a/src/spatial/threevectors.jl +++ b/src/spatial/threevectors.jl @@ -75,7 +75,7 @@ LinearAlgebra.cross(v1::FreeVector3D, v2::FreeVector3D) = begin @framecheck(v1.f LinearAlgebra.dot(v1::FreeVector3D, v2::FreeVector3D) = begin @framecheck(v1.frame, v2.frame); v1.v ⋅ v2.v end Base.:*(t::Transform3D, vector::FreeVector3D) = begin @framecheck(t.from, vector.frame); FreeVector3D(t.to, rotation(t) * vector.v) end Base.:\(t::Transform3D, point::FreeVector3D) = begin @framecheck point.frame t.to; FreeVector3D(t.from, rotation(t) \ point.v) end -LinearAlgebra.norm(v::FreeVector3D) = LinearAlgebra.generic_norm2(v.v) +LinearAlgebra.norm(v::FreeVector3D) = norm(v.v) LinearAlgebra.normalize(v::FreeVector3D, p::Real = 2) = FreeVector3D(v.frame, normalize(v.v, p)) # Mixed Point3D and FreeVector3D