Fix the README examples.

This commit is contained in:
Sébastien Crozet 2015-06-06 14:28:34 +02:00
parent ee7efb5efc
commit 44df67bde2
2 changed files with 3 additions and 13 deletions

View File

@ -23,19 +23,20 @@ The preferred way to use **nalgebra** is to import types and traits explicitly,
free-functions using the `na::` prefix:
```.rust
extern crate "nalgebra" as na;
extern crate nalgebra as na;
use na::{Vec3, Rot3, Rotation};
fn main() {
let a = Vec3::new(1.0f64, 1.0, 1.0);
let mut b = Rot3::new(na::zero());
b.append_rotation(&a);
b.append_rotation_mut(&a);
assert!(na::approx_eq(&na::rotation(&b), &a));
}
```
## 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:

View File

@ -54,17 +54,6 @@ an optimized set of tools for computer graphics and physics. Those features incl
* Almost one trait per functionality: useful for generic programming.
* Operator overloading using multidispatch.
## Compilation
You will need the last nightly 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:
```.ignore
[dependencies.nalgebra]
git = "https://github.com/sebcrozet/nalgebra"
```
## **nalgebra** in use
Here are some projects using **nalgebra**.