aboutsummaryrefslogtreecommitdiff
path: root/core/math.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-12-19 11:56:45 +0000
committerGinger Bill <bill@gingerbill.org>2016-12-19 11:56:45 +0000
commitf5eeecaca5842e4594ad2ed482c529a683bfb012 (patch)
tree25d9a45ca306f16f8bfc6af339c277ec8b163277 /core/math.odin
parent77e219d442b54860979edeaa378d99b8e74d2ebd (diff)
Begin generic declarations for lists of specifications
Diffstat (limited to 'core/math.odin')
-rw-r--r--core/math.odin29
1 files changed, 15 insertions, 14 deletions
diff --git a/core/math.odin b/core/math.odin
index 1b503c0a2..691961ce9 100644
--- a/core/math.odin
+++ b/core/math.odin
@@ -1,21 +1,22 @@
-const TAU = 6.28318530717958647692528676655900576;
-const PI = 3.14159265358979323846264338327950288;
-const ONE_OVER_TAU = 0.636619772367581343075535053490057448;
-const ONE_OVER_PI = 0.159154943091895335768883763372514362;
+const (
+ TAU = 6.28318530717958647692528676655900576;
+ PI = 3.14159265358979323846264338327950288;
+ ONE_OVER_TAU = 0.636619772367581343075535053490057448;
+ ONE_OVER_PI = 0.159154943091895335768883763372514362;
-const E = 2.71828182845904523536;
-const SQRT_TWO = 1.41421356237309504880168872420969808;
-const SQRT_THREE = 1.73205080756887729352744634150587236;
-const SQRT_FIVE = 2.23606797749978969640917366873127623;
+ E = 2.71828182845904523536;
+ SQRT_TWO = 1.41421356237309504880168872420969808;
+ SQRT_THREE = 1.73205080756887729352744634150587236;
+ SQRT_FIVE = 2.23606797749978969640917366873127623;
-const LOG_TWO = 0.693147180559945309417232121458176568;
-const LOG_TEN = 2.30258509299404568401799145468436421;
+ LOG_TWO = 0.693147180559945309417232121458176568;
+ LOG_TEN = 2.30258509299404568401799145468436421;
-const EPSILON = 1.19209290e-7;
-
-const τ = TAU;
-const π = PI;
+ EPSILON = 1.19209290e-7;
+ τ = TAU;
+ π = PI;
+);
type Vec2 [vector 2]f32;
type Vec3 [vector 3]f32;