Add doc comments for vector axes

This commit is contained in:
Brendan Zabarauskas 2016-04-05 08:52:27 +10:00
parent 41a7d1a22d
commit f82c8826a2

View file

@ -177,7 +177,9 @@ pub trait Vector: Copy + Clone where
#[repr(C, packed)]
#[derive(PartialEq, Eq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
pub struct Vector2<S> {
/// The x component of the vector.
pub x: S,
/// The y component of the vector.
pub y: S,
}
@ -187,8 +189,11 @@ pub struct Vector2<S> {
#[repr(C, packed)]
#[derive(PartialEq, Eq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
pub struct Vector3<S> {
/// The x component of the vector.
pub x: S,
/// The y component of the vector.
pub y: S,
/// The z component of the vector.
pub z: S,
}
@ -198,9 +203,13 @@ pub struct Vector3<S> {
#[repr(C, packed)]
#[derive(PartialEq, Eq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
pub struct Vector4<S> {
/// The x component of the vector.
pub x: S,
/// The y component of the vector.
pub y: S,
/// The z component of the vector.
pub z: S,
/// The w component of the vector.
pub w: S,
}