Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 578 Bytes

Ray2D.md

File metadata and controls

21 lines (14 loc) · 578 Bytes

Ray2D

rcsc/geom/ray_2d.h

Represents the ray from any origin O.

It can be useful when one needs to analyse if any opponent is inside the ray between the ball and any other player (or any other point)

ray_2d.gif

Useful methods:

// returns the intersection point with a line
Vector2D intersection( const Line2D & other ) const

// returns the intersection point with a ray
Vector2D intersection( const Ray2D & other ) const

// returns the generated line by the ray
Line2D line() const