105 references to Position
PresentationCore (105)
MS\Internal\Ink\EllipticalNodeOperations.cs (27)
86
if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.
Position
, endNode.
Position
))
92
Vector spine = endNode.
Position
- beginNode.
Position
;
156
return new Quad(beginNode.
Position
+ (vectorToLeftTangent * beginRadius),
157
endNode.
Position
+ (vectorToLeftTangent * endRadius),
158
endNode.
Position
+ (vectorToRightTangent * endRadius),
159
beginNode.
Position
+ (vectorToRightTangent * beginRadius));
174
Point point = node.
Position
;
176
yield return new ContourSegment(point, point, node.
Position
);
181
yield return new ContourSegment(quad.B, quad.C, node.
Position
);
228
Vector hitBegin = hitBeginPoint - bigNode.
Position
;
229
Vector hitEnd = hitEndPoint - bigNode.
Position
;
250
Vector spineVector = smallNode.
Position
- bigNode.
Position
;
298
spineVector = smallNode.
Position
- bigNode.
Position
;
331
Vector hitBegin = hitSegment.Begin - bigNode.
Position
;
362
(WhereIsVectorAboutVector(endNode.
Position
- hitSegment.Begin, hitSegment.Vector) != HitResult.Right))
385
Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.
Position
- endNode.
Position
);
386
Vector hitBegin = hitBeginPoint - endNode.
Position
;
387
Vector hitEnd = hitEndPoint - endNode.
Position
;
463
Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.
Position
- endNode.
Position
);
493
Vector hitBegin = hitSegment.Begin - endNode.
Position
;
549
endNode.
Position
- hitSegment.Begin, hitSegment.Vector) != HitResult.Right))
MS\Internal\Ink\StrokeNode.cs (15)
56
internal Point Position { get { return _thisNode.
Position
; } }
62
internal Point PreviousPosition { get { return _lastNode.
Position
; } }
237
Point point = _lastNode.
Position
+ (vertices[i % vertices.Length] * pressureFactor);
271
Point point = _lastNode.
Position
+ (vertices[i % vertices.Length] * pressureFactor);
356
Point point = _thisNode.
Position
+ (vertices[i % vertices.Length] * pressureFactor);
383
Point point = _thisNode.
Position
+ (vertices[i % vertices.Length] * pressureFactor);
618
Point point = _lastNode.
Position
+ (vertices[i % vertices.Length] * pressureFactor);
1041
return _thisNode.
Position
;
1053
return _thisNode.
Position
;
1063
double xDiff = (_thisNode.
Position
.X - _lastNode.
Position
.X) * findex;
1064
double yDiff = (_thisNode.
Position
.Y - _lastNode.
Position
.Y) * findex;
1069
return new Point( _lastNode.
Position
.X + xDiff,
1070
_lastNode.
Position
.Y + yDiff);
MS\Internal\Ink\StrokeNodeOperations.cs (63)
84
boundingBox.Location += (Vector)node.
Position
;
96
pointBuffer.Add(node.
Position
+ _vertices[i]);
103
pointBuffer.Add(node.
Position
+ (_vertices[i] * pressureFactor));
122
Point vertex = node.
Position
+ (_vertices[_vertices.Length - 1] * node.PressureFactor);
125
Point nextVertex = node.
Position
+ (_vertices[i] * node.PressureFactor);
136
Point vertex = node.
Position
+ (_vertices[i] * node.PressureFactor);
142
Point nextVertex = node.
Position
+ (_vertices[i] * node.PressureFactor);
178
if (beginNode.IsEmpty || endNode.IsEmpty || DoubleUtil.AreClose(beginNode.
Position
, endNode.
Position
))
199
Vector spine = endNode.
Position
- beginNode.
Position
;
233
quad.A = beginNode.
Position
+ _vertices[i] * beginNode.PressureFactor;
234
quad.B = endNode.
Position
+ _vertices[i] * endNode.PressureFactor;
252
quad.C = endNode.
Position
+ _vertices[i] * endNode.PressureFactor;
253
quad.D = beginNode.
Position
+ _vertices[i] * beginNode.PressureFactor;
300
position = endNode.
Position
;
305
position = beginNode.
Position
;
333
Vector hitBegin = hitBeginPoint - beginNode.
Position
;
334
Vector hitEnd = hitEndPoint - beginNode.
Position
;
336
hitBegin, hitEnd, quad.C - beginNode.
Position
, quad.D - beginNode.
Position
);
362
if ((beginNode.
Position
+ vertex) == quad.D)
372
Point nodePosition = (node == 0) ? beginNode.
Position
: endNode.
Position
;
403
Vector spineVector = endNode.
Position
- beginNode.
Position
;
410
while (((endNode.
Position
+ _vertices[i] * pressureFactor) != quad.B) && (count != 0))
468
Point position = (node == 0) ? beginNode.
Position
: endNode.
Position
;
519
(endNode.
Position
- beginNode.
Position
) / beginNode.PressureFactor,
521
(hitBeginPoint - beginNode.
Position
) / beginNode.PressureFactor,
522
(hitEndPoint - beginNode.
Position
) / beginNode.PressureFactor);
529
(beginNode.
Position
- endNode.
Position
) / endNode.PressureFactor,
531
(hitBeginPoint - endNode.
Position
) / endNode.PressureFactor,
532
(hitEndPoint - endNode.
Position
) / endNode.PressureFactor);
566
Vector spineVector = (endNode.
Position
- beginNode.
Position
) / beginNode.PressureFactor;
567
Vector spineVectorReversed = (beginNode.
Position
- endNode.
Position
) / endNode.PressureFactor;
600
? (WhereIsVectorAboutArc(endNode.
Position
- hitSegment.Begin - hitSegment.Radius,
603
endNode.
Position
- hitSegment.Begin, hitSegment.Vector) == HitResult.Right);
936
position = endNode.
Position
;
941
position = beginNode.
Position
;
1040
hitBegin = hitSegment.Begin + hitSegment.Radius - beginNode.
Position
;
1043
hitBegin, hitEnd, quad.C - beginNode.
Position
, quad.D - beginNode.
Position
);
1047
hitBegin = hitSegment.Begin - beginNode.
Position
;
1050
hitBegin, hitEnd, quad.C - beginNode.
Position
, quad.D - beginNode.
Position
);
1078
if (DoubleUtil.AreClose((beginNode.
Position
+ vertex), quad.D))
1089
Point nodePosition = (k == 0) ? beginNode.
Position
: endNode.
Position
;
1130
Vector spineVector = endNode.
Position
- beginNode.
Position
;
1140
while (!DoubleUtil.AreClose((endNode.
Position
+ _vertices[i] * pressureFactor), quad.B) && (count != 0))
1189
position = beginNode.
Position
;
1198
position = endNode.
Position
;
1270
beginNode.
Position
- hitSegment.Begin, hitSegment.Vector) == HitResult.Left);
1275
(hitSegment.Begin + hitSegment.Radius - beginNode.
Position
) / beginNode.PressureFactor,
1278
(hitSegment.Begin - beginNode.
Position
) / beginNode.PressureFactor,
1279
(hitSegment.End - beginNode.
Position
) / beginNode.PressureFactor);