rattletrap-11.1.1: Parse and generate Rocket League replays.
Safe HaskellNone
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
Eq Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

Methods

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

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

Show Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

ToJSON Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector

FromJSON Vector Source # 
Instance details

Defined in Rattletrap.Type.Vector