void TouchPoint::Update(TouchType Type, Point Pos) { if (Type >= Status) { Status = Type; PosPast = PosCurrent; PosCurrent = Pos; Move = PosCurrent - PosDown; CalAngle(); CalDirection(); } };
void SenLogic::CalDirection(IN const JointPoints& points, OUT Vector4& res) { CalDirection(points.pointA, points.pointB, res); }