From 30afffdf32d7768f99a4a2a90613a16516cf0b44 Mon Sep 17 00:00:00 2001 From: lisk77 Date: Sun, 30 Mar 2025 15:03:43 +0200 Subject: [PATCH] fix: dependency issue in vector.rs because of the deleted utilities.rs --- crates/comet_math/src/vector.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/comet_math/src/vector.rs b/crates/comet_math/src/vector.rs index 6a1d364..ae921b5 100644 --- a/crates/comet_math/src/vector.rs +++ b/crates/comet_math/src/vector.rs @@ -1,6 +1,5 @@ use crate::point::{Point2, Point3}; use crate::quaternion::Quat; -use crate::utilities::acos; use std::ops::*; pub trait InnerSpace { @@ -849,7 +848,7 @@ impl InnerSpace for Vec2 { } fn angle(&self, other: &Self) -> f32 { - acos(self.dot(other) / (self.length() * other.length())) + (self.dot(other) / (self.length() * other.length())).acos() } fn length(&self) -> f32 { @@ -899,7 +898,7 @@ impl InnerSpace for Vec3 { } fn angle(&self, other: &Self) -> f32 { - acos(self.dot(other) / (self.length() * other.length())) + (self.dot(other) / (self.length() * other.length())).acos() } fn length(&self) -> f32 { @@ -952,7 +951,7 @@ impl InnerSpace for Vec4 { } fn angle(&self, other: &Self) -> f32 { - acos(self.dot(other) / (self.length() * other.length())) + (self.dot(other) / (self.length() * other.length())).acos() } fn length(&self) -> f32 {