Esempio n. 1
0
 public new Polygon Shift(Shift passedShift)
 {
     return(new Polygon(this.Edges.Shift(passedShift), ValidateOption.Dont));
 }
Esempio n. 2
0
 public Direction Shift(Shift shift) => shift.Matrix.ShiftDirection(this);
Esempio n. 3
0
 public Point Shift(Shift shift) => shift.MapPoint(this);
Esempio n. 4
0
 /// <summary>
 /// Shifts the Line with the given shift
 /// </summary>
 public Line Shift(Shift passedShift) => ApplyAffineTransformation(passedShift.AsAffineTransformation());
Esempio n. 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);
Esempio n. 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));
        }
Esempio n. 7
0
 /// <summary>
 /// Performs the Shift on this vector
 /// </summary>
 public Vector Shift(Shift passedShift)
 {
     return(new Vector(BasePoint.Shift(passedShift), EndPoint.Shift(passedShift)));
 }
Esempio n. 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());
 }