TrajectoryData class

TrajectoryData structure keeps information about one point of the trajectory.

Constructors

TrajectoryData.new({required Timespan time, required Distance travelDistance, required Velocity velocity, required double mach, required Distance drop, required Angular dropAdjustment, required Distance windage, required Angular windageAdjustment, required Energy energy, required Weight optimalGameWeight})

Properties

drop Distance
final
dropAdjustment Angular
final
energy Energy
final
hashCode int
The hash code for this object.
no setterinherited
mach double
final
optimalGameWeight Weight
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time Timespan
final
travelDistance Distance
final
velocity Velocity
final
windage Distance
final
windageAdjustment Angular
final

Methods

getDrop() Distance
Drop returns the shorted distance between the projectile and the shot line
getEnergy() Energy
Energy returns the kinetic energy of the projectile
getTime() Timespan
Time return the amount of time spent since the shot moment
getVelocity() Velocity
Velocity returns the current projectile velocity
machVelocity() double
MachVelocity returns the proportion between the current projectile velocity and the speed of the sound
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
travelledDistance() Distance
TravelledDistance returns the distance measured between the muzzle and the projection of the current bullet position to the line between the muzzle and the target

Operators

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