/// <summary> /// Convert Revit coordinates XYZ to a 2D /// millimetre integer point by scaling /// from feet to mm. /// </summary> public IntPoint2d(double x, double y) { X = Util.FootToMmInt(x); Y = Util.FootToMmInt(y); }
/// <summary> /// Convert a 3D Revit XYZ to a 2D millimetre /// integer point by discarding the Z coordinate /// and scaling from feet to mm. /// </summary> public IntPoint2d(XYZ p) { X = Util.FootToMmInt(p.X); Y = Util.FootToMmInt(p.Y); }
/// <summary> /// Convert Revit coordinates XYZ to a 2D /// millimetre integer point by scaling /// from feet to mm. /// </summary> public IntPoint3d(double x, double y, double z) { X = Util.FootToMmInt(x); Y = Util.FootToMmInt(y); Z = Util.FootToMmInt(z); }
/// <summary> /// Convert a 2D Revit UV to a 2D millimetre /// integer point by scaling from feet to mm. /// </summary> public IntPoint2d(UV p) { X = Util.FootToMmInt(p.U); Y = Util.FootToMmInt(p.V); }
/// <summary> /// Convert a 2D Revit UV to a 3D millimetre /// integer point by scaling from feet to mm. /// </summary> public IntPoint3d(UV p) { X = Util.FootToMmInt(p.U); Y = Util.FootToMmInt(p.V); Z = 0; }