1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// This file is part of "linbra"
// Under the MIT License
// Copyright (c) 2023 Antonin Hérault
//! Fixed-size vector and easy-types for different usually used vectors with
//! into/from implementations on relevant primitives types.
pub use *;
pub use *;
/// Vector with a fixed-length of 2.
pub type Vector2<T> = ;
/// Vector with a fixed-length of 3.
pub type Vector3<T> = ;
/// Vector with a fixed-length of 4.
pub type Vector4<T> = ;
/// Creates a vector 2 from a tuple of two values.
///
/// ## Example
/// ```
/// use linbra::vector::Vector2;
///
/// let vec2: Vector2<u8> = (8, 9).into();
/// assert_eq!(vec2, Vector2::<u8>::new([8, 9]));
/// ```
/// Creates a vector 3 from a tuple of three values.
///
/// ## Example
/// ```
/// use linbra::vector::Vector3;
///
/// let vec3: Vector3<u8> = (8, 9, 10).into();
/// assert_eq!(vec3, Vector3::<u8>::new([8, 9, 10]));
/// ```
/// Creates a vector 4 from a tuple of four values.
///
/// ## Example
/// ```
/// use linbra::vector::Vector4;
///
/// let vec4: Vector4<u8> = (8, 9, 10, 11).into();
/// assert_eq!(vec4, Vector4::<u8>::new([8, 9, 10, 11]));
/// ```