setWith method

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

Implementation

void setWith({required Vector2 origin, required Vector2 direction}) {
  this.origin.setFrom(origin);
  this.direction = direction;
}