Skip to content

Commit

Permalink
Fix the README examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Jun 6, 2015
1 parent ee7efb5 commit 44df67b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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**.
Expand Down

0 comments on commit 44df67b

Please sign in to comment.