Initial camera camera repositioning

This commit is contained in:
hal8174 2024-12-02 21:06:37 +01:00
parent e61964c513
commit 7c160731e7
7 changed files with 82 additions and 44 deletions

View file

@ -71,6 +71,18 @@ impl Add<Dir3> for Pos3 {
}
}
impl Sub<Dir3> for Pos3 {
type Output = Pos3;
fn sub(self, rhs: Dir3) -> Self::Output {
Pos3 {
x: self.x - rhs.x,
y: self.y - rhs.y,
z: self.z - rhs.z,
}
}
}
impl Index<usize> for Pos3 {
type Output = Float;