Skip to content

Commit

Permalink
add function for vec3
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuyuki83 committed Dec 14, 2024
1 parent 7e7845f commit 6af7f5e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions del-geo-core/src/vec3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ where
Self: Sized,
{
fn normalized(&self) -> Self;
fn scaled(&self, s: Real) -> Self;
fn norm(&self) -> Real;
fn squared_norm(&self) -> Real;
fn sub(&self, other: &Self) -> Self;
fn dot(&self, other: &Self) -> Real;
fn norm(&self) -> Real;
fn sub(&self, other: &Self) -> Self;
fn add(&self, other: &Self) -> Self;
fn cross(&self, other: &Self) -> Self;
fn orthogonalize(&self, v: &Self) -> Self;
}
Expand All @@ -19,12 +21,18 @@ where
fn normalized(&self) -> Self {
normalized(self)
}
fn scaled(&self, s: Real) -> Self {
scaled(self, s)
}
fn squared_norm(&self) -> Real {
squared_norm(self)
}
fn sub(&self, other: &Self) -> Self {
sub(self, other)
}
fn add(&self, other: &Self) -> Self {
add(self, other)
}
fn dot(&self, other: &Self) -> Real {
dot(self, other)
}
Expand Down

0 comments on commit 6af7f5e

Please sign in to comment.