From 464401781eb6808ac8d4ae55273a4d20a779c683 Mon Sep 17 00:00:00 2001 From: neviyn Date: Tue, 21 Jul 2020 13:49:33 +0100 Subject: [PATCH] Formatting changes --- src/tuple.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tuple.nim b/src/tuple.nim index 5f0f297..f5ff582 100644 --- a/src/tuple.nim +++ b/src/tuple.nim @@ -22,9 +22,7 @@ proc normalize*(tup: Tuple4): Tuple4 = let mag = tup.magnitude() Tuple4(x: tup.x / mag, y: tup.y / mag, z: tup.z / mag, w: tup.w / mag) proc dot*(lhs: Tuple4, rhs: Tuple4): float = lhs.x * rhs.x + lhs.y * rhs.y + lhs.z * rhs.z + lhs.w * rhs.w -proc cross*(lhs: Tuple4, rhs: Tuple4): Tuple4 = vector(lhs.y * rhs.z - lhs.z * rhs. y, - lhs.z * rhs.x - lhs.x * rhs.z, - lhs.x * rhs.y - lhs.y * rhs.x) +proc cross*(lhs: Tuple4, rhs: Tuple4): Tuple4 = vector(lhs.y * rhs.z - lhs.z * rhs.y, lhs.z * rhs.x - lhs.x * rhs.z, lhs.x * rhs.y - lhs.y * rhs.x) when isMainModule: import unittest