forked from M-Labs/nalgebra
Fix the README examples.
This commit is contained in:
parent
ee7efb5efc
commit
44df67bde2
@ -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:
|
||||
|
11
src/lib.rs
11
src/lib.rs
@ -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**.
|
||||
|
Loading…
Reference in New Issue
Block a user