Replace quoted crate declarations
This commit is contained in:
parent
ec5ece46ca
commit
df93ed2d1c
22
src/lib.rs
22
src/lib.rs
|
@ -24,7 +24,7 @@ The preferred way to use **nalgebra** is to import types and traits explicitly,
|
||||||
free-functions using the `na::` prefix:
|
free-functions using the `na::` prefix:
|
||||||
|
|
||||||
```.rust
|
```.rust
|
||||||
extern crate "nalgebra" as na;
|
extern crate nalgebra as na;
|
||||||
use na::{Vec3, Rot3, Rotation};
|
use na::{Vec3, Rot3, Rotation};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -371,7 +371,7 @@ pub fn perspective3d<N: BaseFloat + Cast<f64> + Zero + One>(width: N, height: N,
|
||||||
/// Gets the translation applicable by `m`.
|
/// Gets the translation applicable by `m`.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Vec3, Iso3};
|
/// use na::{Vec3, Iso3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -389,7 +389,7 @@ pub fn translation<V, M: Translation<V>>(m: &M) -> V {
|
||||||
/// Gets the inverse translation applicable by `m`.
|
/// Gets the inverse translation applicable by `m`.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Vec3, Iso3};
|
/// use na::{Vec3, Iso3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -417,7 +417,7 @@ pub fn append_translation<V, M: Translation<V>>(m: &M, v: &V) -> M {
|
||||||
/// Applies a translation to a point.
|
/// Applies a translation to a point.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Pnt3, Vec3, Iso3};
|
/// use na::{Pnt3, Vec3, Iso3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -437,7 +437,7 @@ pub fn translate<P, M: Translate<P>>(m: &M, p: &P) -> P {
|
||||||
/// Applies an inverse translation to a point.
|
/// Applies an inverse translation to a point.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Pnt3, Vec3, Iso3};
|
/// use na::{Pnt3, Vec3, Iso3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -460,7 +460,7 @@ pub fn inv_translate<P, M: Translate<P>>(m: &M, p: &P) -> P {
|
||||||
/// Gets the rotation applicable by `m`.
|
/// Gets the rotation applicable by `m`.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Vec3, Rot3};
|
/// use na::{Vec3, Rot3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -478,7 +478,7 @@ pub fn rotation<V, M: Rotation<V>>(m: &M) -> V {
|
||||||
/// Gets the inverse rotation applicable by `m`.
|
/// Gets the inverse rotation applicable by `m`.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Vec3, Rot3};
|
/// use na::{Vec3, Rot3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -496,7 +496,7 @@ pub fn inv_rotation<V, M: Rotation<V>>(m: &M) -> V {
|
||||||
/// Applies the rotation `v` to a copy of `m`.
|
/// Applies the rotation `v` to a copy of `m`.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Vec3, Rot3};
|
/// use na::{Vec3, Rot3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -516,7 +516,7 @@ pub fn append_rotation<V, M: Rotation<V>>(m: &M, v: &V) -> M {
|
||||||
/// Pre-applies the rotation `v` to a copy of `m`.
|
/// Pre-applies the rotation `v` to a copy of `m`.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{Vec3, Rot3};
|
/// use na::{Vec3, Rot3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -539,7 +539,7 @@ pub fn prepend_rotation<V, M: Rotation<V>>(m: &M, v: &V) -> M {
|
||||||
/// Applies a rotation to a vector.
|
/// Applies a rotation to a vector.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{BaseFloat, Rot3, Vec3};
|
/// use na::{BaseFloat, Rot3, Vec3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
@ -560,7 +560,7 @@ pub fn rotate<V, M: Rotate<V>>(m: &M, v: &V) -> V {
|
||||||
/// Applies an inverse rotation to a vector.
|
/// Applies an inverse rotation to a vector.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate "nalgebra" as na;
|
/// extern crate nalgebra as na;
|
||||||
/// use na::{BaseFloat, Rot3, Vec3};
|
/// use na::{BaseFloat, Rot3, Vec3};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
|
|
Loading…
Reference in New Issue