Skip to content

Commit

Permalink
New operator / for Float3
Browse files Browse the repository at this point in the history
  • Loading branch information
ouly committed Sep 15, 2010
1 parent 6680e51 commit 09c35c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/engine/Types.ooc
Expand Up @@ -124,6 +124,10 @@ operator * (v1: Float3, n: Float) -> Float3 {
return Float3 new(v1 x * n, v1 y * n, v1 z * n)
}

operator / (v1: Float3, n: Float) -> Float3 {
return Float3 new(v1 x / n, v1 y / n, v1 z / n)
}

operator + (v1,v2: Float3) -> Float3 {
return Float3 new(v1 x + v2 x, v1 y + v2 y, v1 z + v2 z)
}
Expand Down

0 comments on commit 09c35c6

Please sign in to comment.