105 references to Position
PresentationCore (105)
MS\Internal\Ink\EllipticalNodeOperations.cs (27)
91if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.Position, endNode.Position)) 97Vector spine = endNode.Position - beginNode.Position; 161return new Quad(beginNode.Position + (vectorToLeftTangent * beginRadius), 162endNode.Position + (vectorToLeftTangent * endRadius), 163endNode.Position + (vectorToRightTangent * endRadius), 164beginNode.Position + (vectorToRightTangent * beginRadius)); 179Point point = node.Position; 181yield return new ContourSegment(point, point, node.Position); 186yield return new ContourSegment(quad.B, quad.C, node.Position); 233Vector hitBegin = hitBeginPoint - bigNode.Position; 234Vector hitEnd = hitEndPoint - bigNode.Position; 255Vector spineVector = smallNode.Position - bigNode.Position; 303spineVector = smallNode.Position - bigNode.Position; 336Vector hitBegin = hitSegment.Begin - bigNode.Position; 367(WhereIsVectorAboutVector(endNode.Position - hitSegment.Begin, hitSegment.Vector) != HitResult.Right)) 390Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 391Vector hitBegin = hitBeginPoint - endNode.Position; 392Vector hitEnd = hitEndPoint - endNode.Position; 468Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 498Vector hitBegin = hitSegment.Begin - endNode.Position; 554endNode.Position - hitSegment.Begin, hitSegment.Vector) != HitResult.Right))
MS\Internal\Ink\StrokeNode.cs (15)
63internal Point Position { get { return _thisNode.Position; } } 69internal Point PreviousPosition { get { return _lastNode.Position; } } 244Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 278Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 363Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 390Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 625Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 1048return _thisNode.Position; 1060return _thisNode.Position; 1070double xDiff = (_thisNode.Position.X - _lastNode.Position.X) * findex; 1071double yDiff = (_thisNode.Position.Y - _lastNode.Position.Y) * findex; 1076return new Point( _lastNode.Position.X + xDiff, 1077_lastNode.Position.Y + yDiff);
MS\Internal\Ink\StrokeNodeOperations.cs (63)
92boundingBox.Location += (Vector)node.Position; 104pointBuffer.Add(node.Position + _vertices[i]); 111pointBuffer.Add(node.Position + (_vertices[i] * pressureFactor)); 130Point vertex = node.Position + (_vertices[_vertices.Length - 1] * node.PressureFactor); 133Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 144Point vertex = node.Position + (_vertices[i] * node.PressureFactor); 150Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 186if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.Position, endNode.Position)) 207Vector spine = endNode.Position - beginNode.Position; 241quad.A = beginNode.Position + _vertices[i] * beginNode.PressureFactor; 242quad.B = endNode.Position + _vertices[i] * endNode.PressureFactor; 260quad.C = endNode.Position + _vertices[i] * endNode.PressureFactor; 261quad.D = beginNode.Position + _vertices[i] * beginNode.PressureFactor; 308position = endNode.Position; 313position = beginNode.Position; 341Vector hitBegin = hitBeginPoint - beginNode.Position; 342Vector hitEnd = hitEndPoint - beginNode.Position; 344hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 370if ((beginNode.Position + vertex) == quad.D) 380Point nodePosition = (node == 0) ? beginNode.Position : endNode.Position; 411Vector spineVector = endNode.Position - beginNode.Position; 418while (((endNode.Position + _vertices[i] * pressureFactor) != quad.B) && (count != 0)) 476Point position = (node == 0) ? beginNode.Position : endNode.Position; 527(endNode.Position - beginNode.Position) / beginNode.PressureFactor, 529(hitBeginPoint - beginNode.Position) / beginNode.PressureFactor, 530(hitEndPoint - beginNode.Position) / beginNode.PressureFactor); 537(beginNode.Position - endNode.Position) / endNode.PressureFactor, 539(hitBeginPoint - endNode.Position) / endNode.PressureFactor, 540(hitEndPoint - endNode.Position) / endNode.PressureFactor); 574Vector spineVector = (endNode.Position - beginNode.Position) / beginNode.PressureFactor; 575Vector spineVectorReversed = (beginNode.Position - endNode.Position) / endNode.PressureFactor; 608? (WhereIsVectorAboutArc(endNode.Position - hitSegment.Begin - hitSegment.Radius, 611endNode.Position - hitSegment.Begin, hitSegment.Vector) == HitResult.Right); 944position = endNode.Position; 949position = beginNode.Position; 1048hitBegin = hitSegment.Begin + hitSegment.Radius - beginNode.Position; 1051hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 1055hitBegin = hitSegment.Begin - beginNode.Position; 1058hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 1086if (DoubleUtil.AreClose((beginNode.Position + vertex), quad.D)) 1097Point nodePosition = (k == 0) ? beginNode.Position : endNode.Position; 1138Vector spineVector = endNode.Position - beginNode.Position; 1148while (!DoubleUtil.AreClose((endNode.Position + _vertices[i] * pressureFactor), quad.B) && (count != 0)) 1197position = beginNode.Position; 1206position = endNode.Position; 1278beginNode.Position - hitSegment.Begin, hitSegment.Vector) == HitResult.Left); 1283(hitSegment.Begin + hitSegment.Radius - beginNode.Position) / beginNode.PressureFactor, 1286(hitSegment.Begin - beginNode.Position) / beginNode.PressureFactor, 1287(hitSegment.End - beginNode.Position) / beginNode.PressureFactor);