/* versions of overloaded transformation method defined here */ public TrLib.TR_Error Transform(Point pt) { TrLib.TR_Error err; if (!is_init) { pt.return_code = TrLib.TR_Error.TR_LABEL_ERROR; return(TrLib.TR_Error.TR_LABEL_ERROR); } err = TrLib.TR_Transform(TR, out pt.x, out pt.y, out pt.z, 1); pt.return_code = err; return((TrLib.TR_Error)err); }
public TrLib.TR_Error Transform(double[] X, double[] Y, double[] Z) { TrLib.TR_Error ERR = TrLib.TR_Error.TR_OK, err; if ((X.Length != Y.Length) || (Z.Length != X.Length)) { throw new ArgumentException("Sizes of input arrays must agree!"); } for (int i = 0; i < X.Length; i++) { err = TrLib.TR_Transform(TR, out X[i], out Y[i], out Z[i], 1); if (err != TrLib.TR_Error.TR_OK) { ERR = err; } } return(ERR); }
public TrLib.TR_Error Transform(ref double x, ref double y, ref double z) { TrLib.TR_Error err; err = TrLib.TR_Transform(TR, out x, out y, out z, 1); return(err); }