Ray constructor

Ray([
  1. Vector3? from,
  2. Vector3? to
])

Implementation

Ray([Vector3? from, Vector3? to]) {
  this.from = from ?? Vector3.zero();
  this.to = to ?? Vector3.zero();
  callback = (result){};
}