public static DMatrixRMaj toMatrix ( GeoTuple3D_F64 in , DMatrixRMaj out ) { if ( out == null ) out = new DMatrixRMaj ( 3 , 1 ) ; else if ( out . getNumElements ( ) != 3 ) throw new IllegalArgumentException ( "Vector with 3 elements expected" ) ; out . data [ 0 ] = in . x ; out . data [ 1 ] = in . y ; out . data [ 2 ] = in . z ; return out ; }
Converts a GeoTuple3D_F64 into DMatrixRMaj