Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new Manipulation2DCompletedEventArgs object with
 /// the specified properties.
 /// </summary>
 /// <param name="originX">the x coordinate of the composite position of the manipulation</param>
 /// <param name="originY">the y coordinate of the composite position of the manipulation</param>
 /// <param name="velocities">velocities</param>
 /// <param name="total">total change since operation began</param>
 internal Manipulation2DCompletedEventArgs(
     float originX,
     float originY,
     ManipulationVelocities2D velocities,
     ManipulationDelta2D total)
 {
     Debug.Assert(Validations.IsFinite(originX), "originX should be finite");
     Debug.Assert(Validations.IsFinite(originY), "originY should be finite");
     Debug.Assert(velocities != null, "velocities should not be null");
     Debug.Assert(total != null, "total should not be null");
     this.originX    = originX;
     this.originY    = originY;
     this.velocities = velocities;
     this.total      = total;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new Manipulation2DDeltaEventArgs object with
 /// the specified properties.
 /// </summary>
 /// <param name="originX">the x coordinate of the composite position of the manipulation</param>
 /// <param name="originY">the y coordinate of the composite position of the manipulation</param>
 /// <param name="velocities">velocities</param>
 /// <param name="delta">amount of change for this delta</param>
 /// <param name="cumulative">total change since operation began</param>
 internal Manipulation2DDeltaEventArgs(
     float originX,
     float originY,
     ManipulationVelocities2D velocities,
     ManipulationDelta2D delta,
     ManipulationDelta2D cumulative)
 {
     Debug.Assert(Validations.IsFinite(originX), "originX should be finite");
     Debug.Assert(Validations.IsFinite(originY), "originY should be finite");
     Debug.Assert(velocities != null, "velocities should not be null");
     Debug.Assert(delta != null, "delta should not be null");
     Debug.Assert(cumulative != null, "cumulative should not be null");
     this.originX    = originX;
     this.originY    = originY;
     this.velocities = velocities;
     this.delta      = delta;
     this.cumulative = cumulative;
 }