toVector3 method

  1. @Deprecated('.toVector3 has been removed. Use Vector3.setFromEuler() instead')
Vector3 toVector3([
  1. Vector3? optionalResult
])

Implementation

@Deprecated('.toVector3 has been removed. Use Vector3.setFromEuler() instead')
Vector3 toVector3([Vector3? optionalResult]) {
  if (optionalResult != null) {
    optionalResult.setValues(_x, _y, _z);
    return optionalResult;
  }
  else {
    return Vector3(_x, _y, _z);
  }
}