Vector.this

Vector default constructor.

struct Vector(size_t Size, Type = float, string Accessors = "", string Orientation = "horizontal")
@trusted pure nothrow
this
(
Type[Size] values...
)
if (
Size > 0
)

Examples

{
      // Creating a vector with accessors
      auto v = Vector!(3, int, "xyz")(1, 2, 3);

      // Testing accessor methods.
      assert (v.x == 1);
      assert (v.y == 2);
      assert (v.z == 3);

Meta