Quaternion constructor

Quaternion({
  1. double? x,
  2. double? y,
  3. double? z,
  4. double? w,
})

Implementation

factory Quaternion({
  $core.double? x,
  $core.double? y,
  $core.double? z,
  $core.double? w,
}) {
  final $result = create();
  if (x != null) {
    $result.x = x;
  }
  if (y != null) {
    $result.y = y;
  }
  if (z != null) {
    $result.z = z;
  }
  if (w != null) {
    $result.w = w;
  }
  return $result;
}