Vector.set

Sets all vector values in one action.

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

Examples

{
      // Creating vector
      auto v = Vector3i (1, 2, 3);

      // Change data in one action
      v.set (3, 2, 1);
      assert (v[0] == 3 && v[1] == 2 && v[2] == 1);

Meta