Orientation constructor

Orientation({
  1. Orientation_NoOrientation? noOrientation,
  2. Orientation_OrientationVectorRadians? vectorRadians,
  3. Orientation_OrientationVectorDegrees? vectorDegrees,
  4. Orientation_EulerAngles? eulerAngles,
  5. Orientation_AxisAngles? axisAngles,
  6. Orientation_Quaternion? quaternion,
})

Implementation

factory Orientation({
  Orientation_NoOrientation? noOrientation,
  Orientation_OrientationVectorRadians? vectorRadians,
  Orientation_OrientationVectorDegrees? vectorDegrees,
  Orientation_EulerAngles? eulerAngles,
  Orientation_AxisAngles? axisAngles,
  Orientation_Quaternion? quaternion,
}) {
  final $result = create();
  if (noOrientation != null) {
    $result.noOrientation = noOrientation;
  }
  if (vectorRadians != null) {
    $result.vectorRadians = vectorRadians;
  }
  if (vectorDegrees != null) {
    $result.vectorDegrees = vectorDegrees;
  }
  if (eulerAngles != null) {
    $result.eulerAngles = eulerAngles;
  }
  if (axisAngles != null) {
    $result.axisAngles = axisAngles;
  }
  if (quaternion != null) {
    $result.quaternion = quaternion;
  }
  return $result;
}