# [−][src]Module tray_rust::linalg

The linalg module provides some basic linear algebra functionality for transforming 3D geometry

## Re-exports

`pub use self::vector::Vector;` |

`pub use self::normal::Normal;` |

`pub use self::point::Point;` |

`pub use self::ray::Ray;` |

`pub use self::matrix4::Matrix4;` |

`pub use self::transform::Transform;` |

`pub use self::quaternion::Quaternion;` |

`pub use self::keyframe::Keyframe;` |

`pub use self::animated_transform::AnimatedTransform;` |

## Modules

animated_transform | Provides an animated transformation that moves an object between a set of specified keyframes. |

keyframe | Provides a keyframe transformation which is a transform associated with a specific point in time |

matrix4 | |

normal | |

point | |

quaternion | Provides a Quaternion type for properly interpolating rotations |

ray | |

transform | |

vector |

## Enums

Axis | Enum representing on of the 3 spatial axes |

## Functions

clamp | Clamp |

coordinate_system | Compute a local ortho-normal coordinate system from a single vector. |

cross | Compute the cross product of two vectors |

dot | Compute the dot product of two vectors |

lerp | Lerp between |

reflect | Compute the reflection of |

refract | Compute the refraction of |

solve_quadratic | Try to solve the quadratic equation |

spherical_dir | Compute the direction specified by |

spherical_dir_coords | Compute the direction specified by |

spherical_phi | Compute the value of phi for the vector in the spherical coordinate system |

spherical_theta | Compute the value of theta for the vector in the spherical coordinate system |

to_radians | Convert value in degrees to radians
TODO: See where |