5 using SiliconStudio.Core.Mathematics;
7 namespace SiliconStudio.
Paradox.Input
22 public Vector2 StartPosition {
get;
internal set; }
27 public Vector2 CurrentPosition {
get;
internal set; }
32 public Vector2 DeltaTranslation {
get;
internal set; }
37 public Vector2 TotalTranslation {
get;
internal set; }
42 public Vector2 AverageSpeed {
get;
internal set; }
49 NumberOfFinger = numberOfFingers;
50 DeltaTime = deltaTime;
51 TotalTime = totalTime;
53 StartPosition = startPos;
54 CurrentPosition = currPos;
55 DeltaTranslation = deltaTrans;
56 TotalTranslation = currPos - startPos;
57 AverageSpeed = TotalTranslation / (float)(TotalTime.TotalSeconds + 0.0001f);
Represents a two dimensional mathematical vector.