Thunderbots Project
Loading...
Searching...
No Matches
Shot Class Reference

Public Member Functions

 Shot (Point point, Angle angle)
 
const PointgetPointToShootAt () const
 
const AnglegetOpenAngle () const
 

Constructor & Destructor Documentation

◆ Shot()

Shot ( Point  point,
Angle  angle 
)
explicit

Creates a shot with the given target and angle

Parameters
pointThe target to shoot at
angleThe angle formed by the shot origin, and the edges of the two obstacles closest to the shot path

Member Function Documentation

◆ getOpenAngle()

const Angle & getOpenAngle ( ) const

Returns the angle formed by the shot origin, and the edges of the two obstacles closest to the shot path

Returns
the angle formed by the shot origin, and the edges of the two obstacles closest to the shot path

◆ getPointToShootAt()

const Point & getPointToShootAt ( ) const

Returns a point, the target to shoot at.

Returns
a point, representing the target to shoot at.

The documentation for this class was generated from the following files: