示例#1
0
 public new Polygon Shift(Shift passedShift)
 {
     return(new Polygon(this.Edges.Shift(passedShift), ValidateOption.Dont));
 }
 public Direction Shift(Shift shift) => shift.Matrix.ShiftDirection(this);
示例#3
0
 public Point Shift(Shift shift) => shift.MapPoint(this);
示例#4
0
 /// <summary>
 /// Shifts the Line with the given shift
 /// </summary>
 public Line Shift(Shift passedShift) => ApplyAffineTransformation(passedShift.AsAffineTransformation());
示例#5
0
 /// <summary>
 /// Shifts the plane region with the given shift
 /// </summary>
 /// <param name="shiftToApply">The shift to apply to this plane</param>
 /// <returns>Returns a new object of Plane that has been shifted</returns>
 public Plane Shift(Shift shiftToApply) => ApplyIsometry(shiftToApply);
示例#6
0
        /// <summary>
        /// Shifts the Polyhedron to another location and orientation
        /// </summary>
        public Polyhedron Shift(Shift passedShift)
        {
            var shiftedRegions = this.Faces.Shift(passedShift);

            return(new Polyhedron(shiftedRegions, ValidateOption.Dont));
        }
示例#7
0
 /// <summary>
 /// Performs the Shift on this vector
 /// </summary>
 public Vector Shift(Shift passedShift)
 {
     return(new Vector(BasePoint.Shift(passedShift), EndPoint.Shift(passedShift)));
 }
示例#8
0
 public static List <T> Shift <T>(this IEnumerable <T> items, Shift shift)
     where T : IShift <T>
 {
     return(items.Select(item => item.Shift(shift)).ToList());
 }