BcEngine class abstract

Implementers

Constructors

BcEngine()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateEnergy(double bulletWeightGrain, double velocityFps) → double
calculateOgw(double bulletWeightGrain, double velocityFps) → double
denseGetAt(List<BcBaseTrajData> steps, BcBaseTrajInterpKey key, double value, {double startFromTime}) → BcBaseTrajData
The step where key reaches value, interpolated in dense output (steps, time-ordered: what integrateDenseShot returned), or the exact step when one matches. Only steps with time >= startFromTime are searched (0 or negative: all; ignored for BcBaseTrajInterpKey.time). A value beyond the stream is a BcErrorKind.outOfBounds error with the range of the stream; fewer than 3 steps, BcErrorKind.domain.
denseGetAtSlantHeight(List<BcBaseTrajData> steps, double lookAngleRad, double value) → BcBaseTrajData
The step where the height above the line of sight at lookAngleRad reaches value.
findApexShot(BcShot shot) → BcTrajectoryData
findMaxRangeShot(BcShot shot, {double lowAngleDeg, double highAngleDeg}) → BcMaxRangeResult
findZeroAngleShot(BcShot shot, double distanceFt) → double
findZeroPointShot(BcShot shot, double distanceFt) → BcZeroPointResult
getCorrection(double distanceFt, double offsetFt) → double
integrateAtShot(BcShot shot, BcBaseTrajInterpKey key, double targetValue) → BcInterception
integrateDenseShot(BcShot shot, BcTrajectoryRequest request, {double relativeTolerance, double absoluteTolerance}) → BcDenseResult
integrateShot that also returns the accepted steps of the integrator (dense output), for any method: the fixed-step ones through BCLIBCFFI_integrate_dense_shot, the adaptive ones through BCLIBCFFI_integrate_adaptive_shot with relativeTolerance (finite, positive) and absoluteTolerance (finite, non-negative); a tolerance out of range is a BcException of kind BcErrorKind.invalidArgument. The tolerances are ignored by the fixed-step methods.
integrateShot(BcShot shot, BcTrajectoryRequest request) → BcHitResult
interpolateTrajectoryData(BcTrajectoryInterpKey key, double value, BcTrajectoryData t0, BcTrajectoryData t1, BcTrajectoryData t2, {int flag, BcInterpMethod method}) → BcTrajectoryData
The row where key has the value value, interpolated from three rows (t0, t1, t2, ordered by the key: what BcDenseResult.trajectory and BcHitResult.trajectory hold). Every field is interpolated, the key field is set to value and flag is the flag of the result. Two rows with the same key is a BcErrorKind.domain error.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
trajectoryDataFromStep(BcShot shot, BcBaseTrajData step, {int flag}) → BcTrajectoryData
The full record (distance, drop, windage, energy, ...) of one dense step, with the atmosphere, drag and Coriolis data of shot; flag is the BCLIBCFFI_TrajFlag value stored in it.

Operators

operator ==(Object other) → bool
The equality operator.
inherited