Skip to content

Commit

Permalink
Fix a debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanILevi committed Jul 12, 2020
1 parent 31590a8 commit 7dd5fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/math/linear/point.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 7dd5fd5

Please sign in to comment.