Vector.opEquals

struct Vector(T, ubyte N)
const
bool
opEquals
(
U
)
(
U rhs
)
if (
N >= 2 &&
N <= 4
)

Examples

const v1 = Vector2F(4.5f, 6.0f);
assert(v1 == Vector2F(4.5f, 6.0f));
assert(v1 != Vector2F(4.5f, 8.0f));
const v2 = Vector3I(-1, -1, -1);
assert(v2 == -1);
assert(v2 != 0);

Meta