main/src/georegression/geometry/GeometryMath_F64.java
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;
	}
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

@param in Input vector
@param out Output matrix.  If null a new matrix will be declared
@return Converted matrix