Ray constructor

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

Implementation

Ray([Vec3? from, Vec3? to]) {
  this.from = from ?? Vec3();
  this.to = to ?? Vec3();

  callback = (result){};
}