octane-0.13.3: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.Vector

Synopsis

Documentation

data Vector a Source #

Three values packed together. Although the fields are called x, y, and z, that may not be what they actually represent.

This cannot be an instance of BinaryBit because it is not always serialized the same way. Sometimes it is three values run together, but other times it has a flag for the presence of each value.

Constructors

Vector a a a 

Instances

Eq a => Eq (Vector a) Source # 

Methods

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

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

Show a => Show (Vector a) Source # 

Methods

showsPrec :: Int -> Vector a -> ShowS #

show :: Vector a -> String #

showList :: [Vector a] -> ShowS #

Generic (Vector a) Source # 

Associated Types

type Rep (Vector a) :: * -> * #

Methods

from :: Vector a -> Rep (Vector a) x #

to :: Rep (Vector a) x -> Vector a #

ToJSON a => ToJSON (Vector a) Source #

Encoded as a JSON array with 3 elements.

Aeson.encode (Vector 1 2 3 :: Vector Int) "[1,2,3]"

Methods

toJSON :: Vector a -> Value #

toEncoding :: Vector a -> Encoding #

NFData a => NFData (Vector a) Source # 

Methods

rnf :: Vector a -> () #

type Rep (Vector a) Source # 

getInt8Vector :: BitGet (Vector Int8) Source #

Gets a Vector full of Int8s.

putInt8Vector :: Vector Int8 -> BitPut () Source #

Puts a Vector full of Int8s.

putIntVector :: Vector Int -> BitPut () Source #

Puts a Vector full of Ints.