From 44df67bde2875eba733a2580d10f15e455cdd23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 6 Jun 2015 14:28:34 +0200 Subject: [PATCH] Fix the README examples. --- README.md | 5 +++-- src/lib.rs | 11 ----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 003897f3..64879f23 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/src/lib.rs b/src/lib.rs index 5ed1613d..3f2d7975 100644 --- a/src/lib.rs +++ b/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**.