public XYZ VectorToNative(Vector pt) { var revitVector = new XYZ(ScaleToNative(pt.x, pt.units), ScaleToNative(pt.y, pt.units), ScaleToNative(pt.z, pt.units)); var intV = ToInternalCoordinates(revitVector, false); return(intV); }
public Vector3d VectorToNative(Vector pt) { return(new Vector3d( ScaleToNative(pt.x, pt.units), ScaleToNative(pt.y, pt.units), ScaleToNative(pt.z, pt.units))); }
/// <summary> /// Vector to DS Vector /// </summary> /// <param name="vc"></param> /// <returns></returns> public DS.Vector VectorToNative(Vector vc) { return(DS.Vector.ByCoordinates( ScaleToNative(vc.x, vc.units), ScaleToNative(vc.y, vc.units), ScaleToNative(vc.z, vc.units))); }
/// <summary> /// Vector to DS Vector /// </summary> /// <param name="vc"></param> /// <returns></returns> public DS.Vector VectorToNative(Vector vc) { return(DS.Vector.ByCoordinates( ScaleToNative(vc.value[0], vc.units), ScaleToNative(vc.value[1], vc.units), ScaleToNative(vc.value[2], vc.units))); }
public Vector3d VectorToNative(Vector pt) { return(new Vector3d( ScaleToNative(pt.value[0], pt.units), ScaleToNative(pt.value[1], pt.units), ScaleToNative(pt.value[2], pt.units))); }
public Vector VectorToSpeckle(XYZ pt, string units = null) { var u = units ?? ModelUnits; var extPt = ToExternalCoordinates(pt, false); var pointToSpeckle = new Vector( u == Units.None ? extPt.X : ScaleToSpeckle(extPt.X), u == Units.None ? extPt.Y : ScaleToSpeckle(extPt.Y), u == Units.None ? extPt.Z : ScaleToSpeckle(extPt.Z), u); return(pointToSpeckle); }