Vector4 constructor

Vector4(
  1. double x,
  2. double y,
  3. double z,
  4. double w,
)

Construct a new vector with the specified values.

Implementation

factory Vector4(double x, double y, double z, double w) =>
    Vector4.zero()..setValues(x, y, z, w);