Type Alias RowVector

Source
pub type RowVector<T, const N: usize> = Matrix<T, 1, N>;
Expand description

A matrix with one row and N columns.

Aliased Type§

struct RowVector<T, const N: usize> { /* private fields */ }

Implementations§

Source§

impl<T> RowVector<T, 1>

Source

pub const fn new(x: T) -> Self

Creates a new vector from the given components.

Source§

impl<T> RowVector<T, 2>

Source

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

Creates a new vector from the given components.

Source§

impl<T> RowVector<T, 3>

Source

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

Creates a new vector from the given components.

Source§

impl<T> RowVector<T, 4>

Source

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

Creates a new vector from the given components.

Source§

impl<T> RowVector<T, 5>

Source

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

Creates a new vector from the given components.

Source§

impl<T> RowVector<T, 6>

Source

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

Creates a new vector from the given components.

Trait Implementations§

Source§

impl<T> From<[T; 2]> for RowVector<T, 2>

Source§

fn from([x, y]: [T; 2]) -> Self

Converts to this type from the input type.
Source§

impl<T> From<[T; 3]> for RowVector<T, 3>

Source§

fn from([x, y, z]: [T; 3]) -> Self

Converts to this type from the input type.
Source§

impl<T> From<[T; 4]> for RowVector<T, 4>

Source§

fn from([x, y, z, w]: [T; 4]) -> Self

Converts to this type from the input type.
Source§

impl<T> From<[T; 5]> for RowVector<T, 5>

Source§

fn from([x, y, z, w, a]: [T; 5]) -> Self

Converts to this type from the input type.
Source§

impl<T> From<[T; 6]> for RowVector<T, 6>

Source§

fn from([x, y, z, w, a, b]: [T; 6]) -> Self

Converts to this type from the input type.
Source§

impl<T> From<(T, T)> for RowVector<T, 2>

Source§

fn from((x, y): (T, T)) -> Self

Converts to this type from the input type.
Source§

impl<T> From<(T, T, T)> for RowVector<T, 3>

Source§

fn from((x, y, z): (T, T, T)) -> Self

Converts to this type from the input type.
Source§

impl<T> From<(T, T, T, T)> for RowVector<T, 4>

Source§

fn from((x, y, z, w): (T, T, T, T)) -> Self

Converts to this type from the input type.
Source§

impl<T> From<(T, T, T, T, T)> for RowVector<T, 5>

Source§

fn from((x, y, z, w, a): (T, T, T, T, T)) -> Self

Converts to this type from the input type.
Source§

impl<T> From<(T, T, T, T, T, T)> for RowVector<T, 6>

Source§

fn from((x, y, z, w, a, b): (T, T, T, T, T, T)) -> Self

Converts to this type from the input type.