Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Vec3 a = Vec3 {}
- data Point a = Point {}
- readMany :: Read a => String -> [a]
- parse :: Read a => String -> [Point a]
- (*+*) :: Num a => Vec3 a -> Vec3 a -> Vec3 a
- (*-*) :: Num a => Vec3 a -> Vec3 a -> Vec3 a
- step :: Num a => Point a -> Point a
- manhattan :: Num a => Vec3 a -> a
- signumsMatch :: (Eq a, Num a) => Point a -> Bool
- collide :: Ord a => (b -> a) -> [b] -> [b]
- day20a :: String -> Int
- day20b :: String -> [Int]
Documentation
A point with position, velocity, and acceleration in 3D space.
signumsMatch :: (Eq a, Num a) => Point a -> Bool Source #
Returns true if repeated step
will not change the sign of any component
of velocity and position.