summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-29 19:45:47 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-29 19:45:47 +0100
commitace4217b22131865623faac99cfdb5692a84d1ae (patch)
tree67b6d05cf824c0c0f7996b539628f0e72c11a245 /wgpu
parentbd5d871eb6630bc8f987d72c771032f878fb91b6 (diff)
downloadiced-ace4217b22131865623faac99cfdb5692a84d1ae.tar.gz
iced-ace4217b22131865623faac99cfdb5692a84d1ae.tar.bz2
iced-ace4217b22131865623faac99cfdb5692a84d1ae.zip
Fix `Transformation` docs
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/transformation.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/wgpu/src/transformation.rs b/wgpu/src/transformation.rs
index ed80b31a..53583e7e 100644
--- a/wgpu/src/transformation.rs
+++ b/wgpu/src/transformation.rs
@@ -2,10 +2,6 @@ use nalgebra::Matrix3;
use std::ops::Mul;
/// A 2D transformation matrix.
-///
-/// It can be used to apply a transformation to a [`Target`].
-///
-/// [`Target`]: struct.Target.html
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Transformation(Matrix3<f32>);
@@ -16,11 +12,6 @@ impl Transformation {
}
/// Creates an orthographic projection.
- ///
- /// You should rarely need this. On creation, a [`Target`] is automatically
- /// set up with the correct orthographic projection.
- ///
- /// [`Target`]: struct.Target.html
#[rustfmt::skip]
pub fn orthographic(width: u16, height: u16) -> Transformation {
Transformation(nalgebra::Matrix3::new(
@@ -31,8 +22,6 @@ impl Transformation {
}
/// Creates a translate transformation.
- ///
- /// You can use this to pan your camera, for example.
pub fn translate(x: f32, y: f32) -> Transformation {
Transformation(Matrix3::new_translation(&nalgebra::Vector2::new(x, y)))
}