# [−][src]Crate gramit

A simple, `f32`

-based **gra**phics **mat**h library.

Includes two, three, and four-dimensional real vectors and matrices, quaternions, and assorted utilities for transformations and projections.

## Re-exports

`pub use angle::Angle;` |

`pub use fp::ApproxEq;` |

`pub use mat::Mat2;` |

`pub use mat::Mat3;` |

`pub use mat::Mat4;` |

`pub use mat::SquareMatrix;` |

`pub use quaternion::Quaternion;` |

`pub use vec::Vec2;` |

`pub use vec::Vec3;` |

`pub use vec::Vec4;` |

`pub use vec::Vector;` |

## Modules

angle | Consistent angle representations and conversions. |

fp | Helpers for performing floating-point arithmetic. |

lerp | |

mat | Two, three, and four-dimensional real square matrices with |

quaternion | Quaternions with |

transform | Assorted utilities for constructing 3D homogeneous transformation and projection matrices. |

vec | Two, three, and four-dimensional real vectors with |

## Macros

assert_approx_eq | Assert that two expressions are approximately equal according to their |

assert_within_threshold | Assert that two expressions are within a threshold specified by the third parameter, according
to their |

vec2 | Construct a |

vec3 | Construct a |

vec4 | Construct a |