From 8f5b60421c072ae755f2681ee0eb875717496430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Mon, 29 Aug 2016 21:16:15 +0200 Subject: [PATCH] Add an example dependency entry to the README. --- README.md | 11 +++++++++++ src/lib.rs | 38 +++++++++++++++++++------------------- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3fc4940a..761ea297 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,17 @@ nalgebra * Real time computer physics. ## Using **nalgebra** +You will need the last stable build of the [rust compiler](http://www.rust-lang.org) +and the official package manager: [cargo](https://github.com/rust-lang/cargo). + +Simply add the following to your `Cargo.toml` file: + +``` +[dependencies] +nalgebra = "0.10.*" +``` + + All the functionality of **nalgebra** is grouped in one place: the root module `nalgebra::`. This module re-exports everything and includes free functions for all traits methods performing out-of-place operations. diff --git a/src/lib.rs b/src/lib.rs index 7e6c70d8..7c9c85b4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,13 +3,22 @@ **nalgebra** is a low-dimensional linear algebra library written for Rust targeting: -* low-dimensional general-purpose linear algebra (still lacks a lot of features…). -* real time computer graphics. -* real time computer physics. - -An on-line version of this documentation is available [here](http://nalgebra.org/doc/nalgebra). +* General-purpose linear algebra (still lacks a lot of features…) +* Real time computer graphics. +* Real time computer physics. ## Using **nalgebra** +You will need the last stable build of the [rust compiler](http://www.rust-lang.org) +and the official package manager: [cargo](https://github.com/rust-lang/cargo). + +Simply add the following to your `Cargo.toml` file: + +``` +[dependencies] +nalgebra = "0.10.*" +``` + + All the functionality of **nalgebra** is grouped in one place: the root module `nalgebra::`. This module re-exports everything and includes free functions for all traits methods performing out-of-place operations. @@ -20,8 +29,8 @@ Thus, you can import the whole prelude using: use nalgebra::*; ``` -However, the recommended way to use **nalgebra** is to import types and traits explicitly, and call -free-functions using the `na::` prefix: +However, the recommended way to use **nalgebra** is to import types and traits +explicitly, and call free-functions using the `na::` prefix: ```.rust extern crate nalgebra as na; @@ -37,6 +46,7 @@ fn main() { } ``` + ## Features **nalgebra** is meant to be a general-purpose, low-dimensional, linear algebra library, with an optimized set of tools for computer graphics and physics. Those features include: @@ -46,26 +56,16 @@ an optimized set of tools for computer graphics and physics. Those features incl * Points with static sizes: `Point1`, `Point2`, `Point3`, `Point4`, `Point5`, `Point6`. * Square matrices with static sizes: `Matrix1`, `Matrix2`, `Matrix3`, `Matrix4`, `Matrix5`, `Matrix6 `. * Rotation matrices: `Rotation2`, `Rotation3` -* Quaternions: `Quaternion`, `UnitQuaternion`. +* Quaternions: `Quaternion`, `Unit`. * Unit-sized values (unit vectors, unit quaternions, etc.): `Unit`, e.g., `Unit>`. * Isometries (translation ⨯ rotation): `Isometry2`, `Isometry3` * Similarity transformations (translation ⨯ rotation ⨯ uniform scale): `Similarity2`, `Similarity3`. -* 3D projections for computer graphics: `Perspective3`, `PerspectiveMatrix3`, `Orthographic3`, `OrthographicMatrix3`. +* 3D projections for computer graphics: `Persp3`, `PerspMatrix3`, `Ortho3`, `OrthoMatrix3`. * Dynamically sized heap-allocated vector: `DVector`. * Dynamically sized stack-allocated vectors with a maximum size: `DVector1` to `DVector6`. * Dynamically sized heap-allocated (square or rectangular) matrix: `DMatrix`. * Linear algebra and data analysis operators: `Covariance`, `Mean`, `qr`, `cholesky`. * Almost one trait per functionality: useful for generic programming. - - -## **nalgebra** in use -Here are some projects using **nalgebra**. -Feel free to add your project to this list if you happen to use **nalgebra**! - -* [nphysics](https://github.com/sebcrozet/nphysics): a real-time physics engine. -* [ncollide](https://github.com/sebcrozet/ncollide): a collision detection library. -* [kiss3d](https://github.com/sebcrozet/kiss3d): a minimalistic graphics engine. -* [nrays](https://github.com/sebcrozet/nrays): a ray tracer. */ #![deny(non_camel_case_types)]