HitRobotEvent Bearing Property Robocode Robot API for .NET
Returns the bearing to the robot you hit, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.2.0
Syntax

public double Bearing { get; }

Property Value

Type: OnlineDouble
See Also