Initial camera camera repositioning
This commit is contained in:
parent
e61964c513
commit
7c160731e7
7 changed files with 82 additions and 44 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue