Module ndarray

Module ndarray 

Source

Re-exports§

pub use derive_new;
pub use paste;

Structs§

BallRigidBody
BallRigidBodyNoVelocities
BallRigidBodyQuaternions
CurrentTime
FrameTime
InterpolatedBallRigidBodyNoVelocities
InterpolatedPlayerRigidBodyNoVelocities
NDArrayCollector
NDArrayCollector is a Collector which transforms frame-based replay data into a 2-dimensional array of type ndarray::Array2, where each element is of a specified floating point type.
NDArrayColumnHeaders
Represents the column headers in the collected data of an NDArrayCollector.
PlayerAnyJump
PlayerBoost
PlayerDemolishedBy
PlayerJump
PlayerRigidBody
PlayerRigidBodyNoVelocities
PlayerRigidBodyQuaternions
ReplayMetaWithHeaders
A struct that contains both the metadata of a replay and the associated column headers.
SecondsRemaining
VelocityAddedBallRigidBodyNoVelocities
VelocityAddedPlayerRigidBodyNoVelocities

Traits§

FeatureAdder
This trait acts as an abstraction over a feature adder, and is primarily used to allow for heterogeneous collections of feature adders in the NDArrayCollector. While it provides methods for adding features and retrieving column headers, it is generally recommended to implement the LengthCheckedFeatureAdder trait instead, which provides compile-time guarantees about the number of features returned.
LengthCheckedFeatureAdder
This trait is stricter version of the FeatureAdder trait, enforcing at compile time that the number of features added is equal to the number of column headers provided. Implementations of this trait can be automatically adapted to the FeatureAdder trait using the impl_feature_adder! macro.
LengthCheckedPlayerFeatureAdder
This trait is a more strict version of the PlayerFeatureAdder trait, enforcing at compile time that the number of player-specific features added is equal to the number of column headers provided. Implementations of this trait can be automatically adapted to the PlayerFeatureAdder trait using the impl_player_feature_adder! macro.
PlayerFeatureAdder
This trait acts as an abstraction over a player-specific feature adder, and is primarily used to allow for heterogeneous collections of player feature adders in the NDArrayCollector. While it provides methods for adding player-specific features and retrieving column headers, it is generally recommended to implement the LengthCheckedPlayerFeatureAdder trait instead, which provides compile-time guarantees about the number of features returned.

Functions§

convert_float_conversion_error
Unconditionally convert any error into a SubtrActorError of with the SubtrActorErrorVariant::FloatConversionError variant.
get_rigid_body_properties
Extracts the location, rotation, linear velocity and angular velocity from a boxcars::RigidBody and converts them to a type implementing TryFrom<f32>.
get_rigid_body_properties_no_velocities
Extracts the location and rotation from a boxcars::RigidBody and converts them to a type implementing TryFrom<f32>.

Type Aliases§

FeatureAdders
PlayerFeatureAdders