rattletrap-11.2.13: Parse and generate Rocket League replays.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Rattletrap.Type.Vector

Documentation

data Vector Source #

Constructors

Vector 

Fields

  • size :: CompressedWord
     
  • bias :: Word

    This field is guaranteed to be small. In other words, it won't overflow. It's stored as a regular Word rather than something more precise like a Word8 because it just gets passed to a functions that expect Words. There's no reason to do a bunch of conversions.

  • x :: Int

    See bias.

  • y :: Int

    See bias.

  • z :: Int

    See bias.

Instances

Instances details
FromJSON Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

ToJSON Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

Show Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

Eq Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

Methods

(==) :: Vector -> Vector -> Bool #

(/=) :: Vector -> Vector -> Bool #