13 instantiations of VectorF
System.Windows.Input.Manipulations (13)
System\Windows\Input\Manipulations\ManipulationSequence.cs (5)
31
private static readonly VectorF ZeroVector = new
VectorF
(0, 0);
676
VectorF translation = new
VectorF
(averagePoint.X - this.currentManipulationState.Position.X, averagePoint.Y - this.currentManipulationState.Position.Y);
871
? new
VectorF
(pair.Value.CurrentManipulatorSnapshot.X - settings.Pivot.X, pair.Value.CurrentManipulatorSnapshot.Y - settings.Pivot.Y)
978
this.cumulativeTranslation = new
VectorF
(0.0f, 0.0f);
1046
? new
VectorF
(pair.Value.CurrentManipulatorSnapshot.X - settings.Pivot.X, pair.Value.CurrentManipulatorSnapshot.Y - settings.Pivot.Y)
System\Windows\Input\Manipulations\PointF.cs (2)
41
return new
VectorF
(point.x, point.y);
90
return new
VectorF
(point1.x - point2.x, point1.y - point2.y);
System\Windows\Input\Manipulations\VectorF.cs (6)
75
return new
VectorF
(-vector.x, -vector.y);
170
return new
VectorF
(vector1.x + vector2.x, vector1.y + vector2.y);
220
return new
VectorF
(vector1.x - vector2.x, vector1.y - vector2.y);
248
return new
VectorF
(vector.x * scalar, vector.y * scalar);
259
return new
VectorF
(vector.x * scalar, vector.y * scalar);
270
return new
VectorF
(vector.x / scalar, vector.y / scalar);
49 references to VectorF
System.Windows.Input.Manipulations (49)
System\Windows\Input\Manipulations\ManipulationSequence.cs (19)
31
private static readonly
VectorF
ZeroVector = new VectorF(0, 0);
59
private
VectorF
cumulativeTranslation;
382
VectorF
previousTranslation = this.cumulativeTranslation;
508
private void RaiseEvents(
VectorF
previousTranslation, float previousSmoothedScale, float previousSmoothedExpansion, float previousSmoothedRotation)
568
VectorF
translate = this.cumulativeTranslation;
676
VectorF
translation = new VectorF(averagePoint.X - this.currentManipulationState.Position.X, averagePoint.Y - this.currentManipulationState.Position.Y);
867
VectorF
oldVectorFromOrigin = pair.Value.VectorFromManipulationOrigin;
868
VectorF
newVectorFromOrigin = new PointF(pair.Value.CurrentManipulatorSnapshot.X, pair.Value.CurrentManipulatorSnapshot.Y) - averagePoint;
869
VectorF
oldVectorFromPivot = pair.Value.VectorFromPivotPoint;
870
VectorF
newVectorFromPivot = isPinned
895
VectorF
oldVectorForRotationCalc = isPinned ? oldVectorFromPivot : oldVectorFromOrigin;
896
VectorF
newVectorForRotationCalc = isPinned ? newVectorFromPivot : newVectorFromOrigin;
953
VectorF
oldVector = previousPosition - pivotPoint;
954
VectorF
newVector = currentPosition - pivotPoint;
961
float angle =
VectorF
.AngleBetween(oldVector, newVector);
1457
private
VectorF
vectorFromManipulationOrigin;
1458
private
VectorF
vectorFromPivotPoint;
1513
public
VectorF
VectorFromManipulationOrigin
1528
public
VectorF
VectorFromPivotPoint
System\Windows\Input\Manipulations\PointF.cs (4)
39
public static explicit operator
VectorF
(in PointF point)
76
public static PointF operator +(in PointF pt,
VectorF
offset)
88
public static
VectorF
operator -(in PointF point1, in PointF point2)
100
public static PointF operator -(in PointF point,
VectorF
vector)
System\Windows\Input\Manipulations\VectorF.cs (26)
58
public static explicit operator PointF(
VectorF
vector)
73
public static
VectorF
operator -(
VectorF
vector)
100
public static bool operator !=(
VectorF
vector1,
VectorF
vector2)
112
public static bool operator ==(
VectorF
vector1,
VectorF
vector2)
126
if (o is
VectorF
)
128
return (
VectorF
)o == this;
168
public static
VectorF
operator +(
VectorF
vector1,
VectorF
vector2)
179
public static PointF operator +(
VectorF
vector, PointF point)
218
public static
VectorF
operator -(
VectorF
vector1,
VectorF
vector2)
246
public static
VectorF
operator *(float scalar,
VectorF
vector)
257
public static
VectorF
operator *(
VectorF
vector, float scalar)
268
public static
VectorF
operator /(
VectorF
vector, float scalar)
319
public static float operator *(
VectorF
vector1,
VectorF
vector2)
410
public static float AngleBetween(
VectorF
vector1,
VectorF
vector2)