| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Box2D.MathFunctions
Description
Low-level bindings to the exported (non-inline) functions of
box2d/math_functions.h.
Box2D implements most of its vector math as static inline helpers, which
have no linkable symbols and are therefore out of scope for FFI. Only the
handful of functions marked B2_API are bound here: the validators (handy
as ABI oracles for the Box2D.MathTypes Storable
instances) and a couple of by-value constructors.
Synopsis
- isValidVec2 :: Vec2 -> IO Bool
- isValidRotation :: Rot -> IO Bool
- isValidTransform :: Transform -> IO Bool
- isValidAABB :: AABB -> IO Bool
- isValidPlane :: Plane -> IO Bool
- computeCosSin :: Float -> IO CosSin
- makeRot :: Float -> IO Rot
- rotGetAngle :: Rot -> Float