105 references to Position
PresentationCore (105)
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (27)
92if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.Position, endNode.Position)) 98Vector spine = endNode.Position - beginNode.Position; 162return new Quad(beginNode.Position + (vectorToLeftTangent * beginRadius), 163endNode.Position + (vectorToLeftTangent * endRadius), 164endNode.Position + (vectorToRightTangent * endRadius), 165beginNode.Position + (vectorToRightTangent * beginRadius)); 180Point point = node.Position; 182yield return new ContourSegment(point, point, node.Position); 187yield return new ContourSegment(quad.B, quad.C, node.Position); 234Vector hitBegin = hitBeginPoint - bigNode.Position; 235Vector hitEnd = hitEndPoint - bigNode.Position; 256Vector spineVector = smallNode.Position - bigNode.Position; 304spineVector = smallNode.Position - bigNode.Position; 337Vector hitBegin = hitSegment.Begin - bigNode.Position; 368(WhereIsVectorAboutVector(endNode.Position - hitSegment.Begin, hitSegment.Vector) != HitResult.Right)) 391Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 392Vector hitBegin = hitBeginPoint - endNode.Position; 393Vector hitEnd = hitEndPoint - endNode.Position; 469Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 499Vector hitBegin = hitSegment.Begin - endNode.Position; 555endNode.Position - hitSegment.Begin, hitSegment.Vector) != HitResult.Right))
Core\CSharp\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); 626Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 1050return _thisNode.Position; 1062return _thisNode.Position; 1072double xDiff = (_thisNode.Position.X - _lastNode.Position.X) * findex; 1073double yDiff = (_thisNode.Position.Y - _lastNode.Position.Y) * findex; 1078return new Point( _lastNode.Position.X + xDiff, 1079_lastNode.Position.Y + yDiff);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (63)
95boundingBox.Location += (Vector)node.Position; 107pointBuffer.Add(node.Position + _vertices[i]); 114pointBuffer.Add(node.Position + (_vertices[i] * pressureFactor)); 133Point vertex = node.Position + (_vertices[_vertices.Length - 1] * node.PressureFactor); 136Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 147Point vertex = node.Position + (_vertices[i] * node.PressureFactor); 153Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 189if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.Position, endNode.Position)) 210Vector spine = endNode.Position - beginNode.Position; 244quad.A = beginNode.Position + _vertices[i] * beginNode.PressureFactor; 245quad.B = endNode.Position + _vertices[i] * endNode.PressureFactor; 263quad.C = endNode.Position + _vertices[i] * endNode.PressureFactor; 264quad.D = beginNode.Position + _vertices[i] * beginNode.PressureFactor; 311position = endNode.Position; 316position = beginNode.Position; 344Vector hitBegin = hitBeginPoint - beginNode.Position; 345Vector hitEnd = hitEndPoint - beginNode.Position; 347hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 373if ((beginNode.Position + vertex) == quad.D) 383Point nodePosition = (node == 0) ? beginNode.Position : endNode.Position; 414Vector spineVector = endNode.Position - beginNode.Position; 421while (((endNode.Position + _vertices[i] * pressureFactor) != quad.B) && (count != 0)) 485Point position = (node == 0) ? beginNode.Position : endNode.Position; 536(endNode.Position - beginNode.Position) / beginNode.PressureFactor, 538(hitBeginPoint - beginNode.Position) / beginNode.PressureFactor, 539(hitEndPoint - beginNode.Position) / beginNode.PressureFactor); 546(beginNode.Position - endNode.Position) / endNode.PressureFactor, 548(hitBeginPoint - endNode.Position) / endNode.PressureFactor, 549(hitEndPoint - endNode.Position) / endNode.PressureFactor); 583Vector spineVector = (endNode.Position - beginNode.Position) / beginNode.PressureFactor; 584Vector spineVectorReversed = (beginNode.Position - endNode.Position) / endNode.PressureFactor; 619? (WhereIsVectorAboutArc(endNode.Position - hitSegment.Begin - hitSegment.Radius, 622endNode.Position - hitSegment.Begin, hitSegment.Vector) == HitResult.Right); 958position = endNode.Position; 963position = beginNode.Position; 1062hitBegin = hitSegment.Begin + hitSegment.Radius - beginNode.Position; 1065hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 1069hitBegin = hitSegment.Begin - beginNode.Position; 1072hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 1100if (DoubleUtil.AreClose((beginNode.Position + vertex), quad.D)) 1111Point nodePosition = (k == 0) ? beginNode.Position : endNode.Position; 1152Vector spineVector = endNode.Position - beginNode.Position; 1162while (!DoubleUtil.AreClose((endNode.Position + _vertices[i] * pressureFactor), quad.B) && (count != 0)) 1211position = beginNode.Position; 1220position = endNode.Position; 1292beginNode.Position - hitSegment.Begin, hitSegment.Vector) == HitResult.Left); 1297(hitSegment.Begin + hitSegment.Radius - beginNode.Position) / beginNode.PressureFactor, 1300(hitSegment.Begin - beginNode.Position) / beginNode.PressureFactor, 1301(hitSegment.End - beginNode.Position) / beginNode.PressureFactor);