Type Definition vectrix::Vector[][src]

type Vector<T, const M: usize> = Matrix<T, M, 1>;

A matrix with one column and M rows.

Implementations

impl<T> Vector<T, 2>[src]

pub const fn new(x: T, y: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Vector<T, 3>[src]

pub const fn new(x: T, y: T, z: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Vector<T, 4>[src]

pub const fn new(x: T, y: T, z: T, w: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Vector<T, 5>[src]

pub const fn new(x: T, y: T, z: T, w: T, a: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Vector<T, 6>[src]

pub const fn new(x: T, y: T, z: T, w: T, a: T, b: T) -> Self[src]

Creates a new vector from the given components.

Trait Implementations

impl<T> From<[T; 2]> for Vector<T, 2>[src]

impl<T> From<[T; 3]> for Vector<T, 3>[src]

impl<T> From<[T; 4]> for Vector<T, 4>[src]

impl<T> From<[T; 5]> for Vector<T, 5>[src]

impl<T> From<[T; 6]> for Vector<T, 6>[src]