mirror of
https://github.com/lisk77/comet.git
synced 2025-10-23 21:38:50 +00:00
fix: dependency issue in vector.rs because of the deleted utilities.rs
This commit is contained in:
parent
edcebb3c32
commit
30afffdf32
1 changed files with 3 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue