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