Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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;
 }