ndarray_cg/vector/vec4/general.rs
1mod private
2{
3 use crate::*;
4 //use vector::arithmetics::inner_product::*;
5
6 impl< E : MatEl + NdFloat > Vector< E, 4 >
7 {
8 #[ inline ]
9 pub fn x( &self ) -> E
10 {
11 self.0[ 0 ]
12 }
13
14 #[ inline ]
15 pub fn y( &self ) -> E
16 {
17 self.0[ 1 ]
18 }
19
20 #[ inline ]
21 pub fn z( &self ) -> E
22 {
23 self.0[ 2 ]
24 }
25
26 #[ inline ]
27 pub fn w( &self ) -> E
28 {
29 self.0[ 2 ]
30 }
31 }
32}
33
34crate::mod_interface!
35{
36
37}