Ray2 constructor

Ray2({
  1. required Vector2 origin,
  2. required Vector2 direction,
})

Implementation

Ray2({required this.origin, required Vector2 direction}) {
  this.direction = direction;
}