Calculator class
Methods
-
aimingSolutionForTarget(Shot shot, Distance targetDistance)
→ (Angular, Angular, TrajectoryData)
-
Returns the vertical hold, windage, and target-range trajectory point.
-
barrelElevationForTarget(Shot shot, Distance targetDistance)
→ Angular
-
Returns the barrel elevation (relative to look-angle) needed to hit
a target at
targetDistance.
-
fire({required Shot shot, required Distance trajectoryRange, Distance? trajectoryStep, double timeStep = 0.0, int filterFlags = 8, bool raiseRangeError = true})
→ HitResult
-
Fires a shot and returns the full trajectory as a HitResult.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
setWeaponZero(Shot shot, Distance zeroDistance)
→ Angular
-
Zeros the weapon by storing the required barrel elevation in
Weapon.zeroElevation and resetting
shot.relativeAngle to zero.
-
toString()
→ String
-
A string representation of this object.
inherited