105 references to Position
PresentationCore (105)
MS\Internal\Ink\EllipticalNodeOperations.cs (27)
87if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.Position, endNode.Position)) 93Vector spine = endNode.Position - beginNode.Position; 157return new Quad(beginNode.Position + (vectorToLeftTangent * beginRadius), 158endNode.Position + (vectorToLeftTangent * endRadius), 159endNode.Position + (vectorToRightTangent * endRadius), 160beginNode.Position + (vectorToRightTangent * beginRadius)); 175Point point = node.Position; 177yield return new ContourSegment(point, point, node.Position); 182yield return new ContourSegment(quad.B, quad.C, node.Position); 229Vector hitBegin = hitBeginPoint - bigNode.Position; 230Vector hitEnd = hitEndPoint - bigNode.Position; 251Vector spineVector = smallNode.Position - bigNode.Position; 299spineVector = smallNode.Position - bigNode.Position; 332Vector hitBegin = hitSegment.Begin - bigNode.Position; 363(WhereIsVectorAboutVector(endNode.Position - hitSegment.Begin, hitSegment.Vector) != HitResult.Right)) 386Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 387Vector hitBegin = hitBeginPoint - endNode.Position; 388Vector hitEnd = hitEndPoint - endNode.Position; 464Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 494Vector hitBegin = hitSegment.Begin - endNode.Position; 550endNode.Position - hitSegment.Begin, hitSegment.Vector) != HitResult.Right))
MS\Internal\Ink\StrokeNode.cs (15)
57internal Point Position { get { return _thisNode.Position; } } 63internal Point PreviousPosition { get { return _lastNode.Position; } } 238Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 272Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 357Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 384Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 619Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 1042return _thisNode.Position; 1054return _thisNode.Position; 1064double xDiff = (_thisNode.Position.X - _lastNode.Position.X) * findex; 1065double yDiff = (_thisNode.Position.Y - _lastNode.Position.Y) * findex; 1070return new Point( _lastNode.Position.X + xDiff, 1071_lastNode.Position.Y + yDiff);
MS\Internal\Ink\StrokeNodeOperations.cs (63)
85boundingBox.Location += (Vector)node.Position; 97pointBuffer.Add(node.Position + _vertices[i]); 104pointBuffer.Add(node.Position + (_vertices[i] * pressureFactor)); 123Point vertex = node.Position + (_vertices[_vertices.Length - 1] * node.PressureFactor); 126Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 137Point vertex = node.Position + (_vertices[i] * node.PressureFactor); 143Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 179if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.Position, endNode.Position)) 200Vector spine = endNode.Position - beginNode.Position; 234quad.A = beginNode.Position + _vertices[i] * beginNode.PressureFactor; 235quad.B = endNode.Position + _vertices[i] * endNode.PressureFactor; 253quad.C = endNode.Position + _vertices[i] * endNode.PressureFactor; 254quad.D = beginNode.Position + _vertices[i] * beginNode.PressureFactor; 301position = endNode.Position; 306position = beginNode.Position; 334Vector hitBegin = hitBeginPoint - beginNode.Position; 335Vector hitEnd = hitEndPoint - beginNode.Position; 337hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 363if ((beginNode.Position + vertex) == quad.D) 373Point nodePosition = (node == 0) ? beginNode.Position : endNode.Position; 404Vector spineVector = endNode.Position - beginNode.Position; 411while (((endNode.Position + _vertices[i] * pressureFactor) != quad.B) && (count != 0)) 469Point position = (node == 0) ? beginNode.Position : endNode.Position; 520(endNode.Position - beginNode.Position) / beginNode.PressureFactor, 522(hitBeginPoint - beginNode.Position) / beginNode.PressureFactor, 523(hitEndPoint - beginNode.Position) / beginNode.PressureFactor); 530(beginNode.Position - endNode.Position) / endNode.PressureFactor, 532(hitBeginPoint - endNode.Position) / endNode.PressureFactor, 533(hitEndPoint - endNode.Position) / endNode.PressureFactor); 567Vector spineVector = (endNode.Position - beginNode.Position) / beginNode.PressureFactor; 568Vector spineVectorReversed = (beginNode.Position - endNode.Position) / endNode.PressureFactor; 601? (WhereIsVectorAboutArc(endNode.Position - hitSegment.Begin - hitSegment.Radius, 604endNode.Position - hitSegment.Begin, hitSegment.Vector) == HitResult.Right); 937position = endNode.Position; 942position = beginNode.Position; 1041hitBegin = hitSegment.Begin + hitSegment.Radius - beginNode.Position; 1044hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 1048hitBegin = hitSegment.Begin - beginNode.Position; 1051hitBegin, hitEnd, quad.C - beginNode.Position, quad.D - beginNode.Position); 1079if (DoubleUtil.AreClose((beginNode.Position + vertex), quad.D)) 1090Point nodePosition = (k == 0) ? beginNode.Position : endNode.Position; 1131Vector spineVector = endNode.Position - beginNode.Position; 1141while (!DoubleUtil.AreClose((endNode.Position + _vertices[i] * pressureFactor), quad.B) && (count != 0)) 1190position = beginNode.Position; 1199position = endNode.Position; 1271beginNode.Position - hitSegment.Begin, hitSegment.Vector) == HitResult.Left); 1276(hitSegment.Begin + hitSegment.Radius - beginNode.Position) / beginNode.PressureFactor, 1279(hitSegment.Begin - beginNode.Position) / beginNode.PressureFactor, 1280(hitSegment.End - beginNode.Position) / beginNode.PressureFactor);