From 7dd5fd5049c2d9b5808c4185df69813f56b7a82c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 11 Jul 2020 23:57:47 -0500 Subject: [PATCH] Fix a debug. --- src/math/linear/point.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/linear/point.d b/src/math/linear/point.d index a70ae81..5fa0134 100644 --- a/src/math/linear/point.d +++ b/src/math/linear/point.d @@ -5,7 +5,7 @@ import math.linear.vector: Vec; // TODO: Add tests to ensure T is a compotable type (number or vector, etc...). struct Point(T) { union { - T vector; + T vector; struct { static if (T.data.length>=1) T x; @@ -15,12 +15,12 @@ struct Point(T) { T z; static if (T.data.length>=4) T w; - } + } } alias v = vector; const - auto opBinary(string op, T)(T b) {////if (__traits(compiles, opBinaryImpl!op(this, b))){ + auto opBinary(string op, T)(T b) if (__traits(compiles, opBinaryImpl!op(this, b))){ return opBinaryImpl!op(this, b); } const