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