152 instantiations of Vector
PresentationCore (43)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (2)
819return new System.Windows.Vector(); 829return new Rect(new Point(), new System.Windows.Vector());
Core\CSharp\MS\Internal\Ink\Bezier.cs (2)
197Vector tanEnd = new Vector(0, 0); 198Vector tanStart = new Vector(0, 0);
Core\CSharp\MS\Internal\Ink\ContourSegment.cs (2)
30_vector = DoubleUtil.AreClose(begin, end) ? new Vector(0, 0) : (end - begin); 31_radius = new Vector(0, 0);
Core\CSharp\MS\Internal\Ink\CuspData.cs (1)
183return new Vector(_points[i].Point.X, _points[i].Point.Y);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (3)
292spineVector = new Vector(); 391Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 469Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
2772private Vector _himetricSize = new Vector(0.0f, 0.0f);
Core\CSharp\MS\Internal\Ink\Lasso.cs (1)
793new Vector(0, 0), /*orgBegin*/
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (2)
362Vector vertex = new Vector(); 1096Vector vertex = new Vector();
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (2)
87Vector zeroVector = new Vector(0, 0); 211return WhereIsCircleAboutSegment(hitBegin, new Vector(0, 0), orgBegin, orgEnd);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (3)
221topLeft + new Vector(m_width, 0), 222topLeft + new Vector(m_width, m_height), 223topLeft + new Vector(0, m_height)};
Core\CSharp\System\Windows\Input\InertiaExpansionBehavior.cs (3)
63_desiredExpansion = new Vector(double.NaN, double.NaN); 131private Vector _initialVelocity = new Vector(double.NaN, double.NaN); 135private Vector _desiredExpansion = new Vector(double.NaN, double.NaN);
Core\CSharp\System\Windows\Input\InertiaTranslationBehavior.cs (1)
121private Vector _initialVelocity = new Vector(double.NaN, double.NaN);
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (11)
195new Vector(delta.TranslationX + add.Translation.X, delta.TranslationY + add.Translation.Y), 197new Vector(delta.ScaleX * add.Scale.X, delta.ScaleY * add.Scale.Y), 198new Vector(delta.ExpansionX + add.Expansion.X, delta.ExpansionY + add.Expansion.Y)); 203new Vector(delta.TranslationX, delta.TranslationY), 205new Vector(delta.ScaleX, delta.ScaleY), 206new Vector(delta.ExpansionX, delta.ExpansionY)); 213new Vector(velocities.LinearVelocityX, velocities.LinearVelocityY), 215new Vector(velocities.ExpansionVelocityX, velocities.ExpansionVelocityY)); 373unusedManipulation = new ManipulationDelta(new Vector(), 0.0, new Vector(1.0, 1.0), new Vector());
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (4)
235Vector from = new Vector(); 236Vector to = new Vector(); 237Vector accumulated = new Vector(); 238Vector foundation = new Vector();
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (1)
39private Vector _accumulatingOffset = new Vector();
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (1)
38private Vector _accumulatingVector = new Vector();
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (1)
759value = new Vector(
Core\CSharp\System\Windows\Media\Visual.cs (1)
1612if (isOnChannel || _offset != new Vector())
Core\CSharp\System\Windows\UIElement.cs (1)
1289VisualOffset = new Vector(finalRect.X, finalRect.Y);
PresentationFramework (65)
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
64_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v)); 89_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v));
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (4)
148offset = new Vector( 182_pageVisual.Offset = new Vector(-_scrollData.HorizontalOffset, -_scrollData.VerticalOffset); 214if (!DoubleUtil.AreClose(_scrollData.Offset, new Vector())) 216_scrollData.Offset = new Vector();
src\Framework\MS\Internal\Documents\ParagraphResult.cs (3)
954return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1069return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1242return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop));
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
243_offset = new Vector();
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
1788Vector offset = new Vector( 1916lineVisual.Offset = new Vector(horizontalOffset, verticalOffset + lineIndex * _lineHeight);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (1)
728Vector contentOffset = new Vector();
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (1)
734Vector contentOffset = new Vector();
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
462ColumnResult columnResult = new ColumnResult(this, ref pageDetails.u.simple.trackdescr, new Vector()); 517ColumnResult columnResult = new ColumnResult(this, ref columnDesc, new Vector());
src\Framework\MS\Internal\PtsHost\Line.cs (1)
447inlineObject.UIElementIsland.Offset = new Vector(rect.Left, rect.Top);
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
1030return new Vector(TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv));
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (1)
611Vector contentOffset = new Vector();
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (8)
1664lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3512lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3557lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3717lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3738lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3777lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3924lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3993lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
208proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX), 213proxyVisual.Offset = new Vector(lineOffset.X + rect.Left, lineOffset.Y + rect.Top);
src\Framework\System\Windows\Controls\Border.cs (1)
715Vector offset = new Vector(rect.TopLeft.X, rect.TopLeft.Y);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6571Vector v = new Vector(pt.X - (cellBounds.Width * 0.5), pt.Y - (cellBounds.Height * 0.5));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
1850Vector transformedUnitX = popupTransform.Transform(new Vector(1.0, 0.0)); 1851Vector transformedUnitY = popupTransform.Transform(new Vector(0.0, 1.0)); 2025Vector bestTranslation = new Vector(_positionInfo.X, _positionInfo.Y); 2305Vector offset = new Vector(HorizontalOffset, VerticalOffset);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (2)
116return new Vector(transform.X, transform.Y); 119return new Vector();
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
154_thumbOffset = new Vector();
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
848Vector computedOffset = new Vector(
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (1)
240Vector childOffset = new Vector();
src\Framework\System\Windows\Controls\ScrollViewer.cs (10)
1820e.ReportBoundaryFeedback(new ManipulationDelta(new Vector(unusedX, unusedY), 0.0, new Vector(1.0, 1.0), new Vector())); 1878_panningInfo.UnusedTranslation = new Vector(unused, _panningInfo.UnusedTranslation.Y); 1888_panningInfo.UnusedTranslation = new Vector(_panningInfo.UnusedTranslation.X, unused); 1988!DoubleUtil.AreClose(e.FinalVelocities.LinearVelocity, new Vector()) && 2447new Vector(HorizontalOffset, VerticalOffset), 2448new Vector(HorizontalOffset - oldActualHorizontalOffset, VerticalOffset - oldActualVerticalOffset), 2450new Vector(ExtentWidth - oldExtentWidth, ExtentHeight - oldExtentHeight), 2452new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight));
src\Framework\System\Windows\Controls\Stack.cs (3)
246Vector newOffset = new Vector(); 1115_offset = new Vector(); 1126internal Vector _computedOffset = new Vector(0,0);
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3203Vector contentOffset = new Vector();
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (5)
1437Vector newOffset = new Vector(); 9467computedViewportOffset = new Vector(viewport.Location.X, viewport.Location.Y); 10321computedViewportOffset = new Vector(viewport.Location.X, viewport.Location.Y); 11631_offset = new Vector(); 11663internal Vector _computedOffset = new Vector(0,0);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
313visual.Offset = new Vector(offsetX, offsetY);
src\Framework\System\Windows\FrameworkElement.cs (3)
4548SetLayoutOffset(new Vector(finalRect.X, finalRect.Y), oldRenderSize); 4824Vector offset = new Vector(); 5150element.InternalSetOffsetWorkaround(new Vector());
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10876bamlType.DefaultConstructor = delegate() { return new System.Windows.Vector(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1639case KnownElements.Vector: o = new System.Windows.Vector(); break;
System.Activities.Core.Presentation (7)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (2)
420OffSetViewState(new Vector(offsetValue, offsetValue), modelItemsPerMetaData); 452OffSetViewState(new Vector(newOrigin.X - topLeft.X, newOrigin.Y - topLeft.Y), modelItemsInMetaData);
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
61Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.DesiredSize.Height), tooltip.DesiredSize);
System\Activities\Core\Presentation\FreeFormPanelUtilities.cs (1)
21Vector dir = new Vector(1, 0); // Point to right.
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (2)
455OffsetLocationViewStates(new Vector(point.X - topLeft.X, point.Y - topLeft.Y), itemsPasted, GetTransitionModelItems(itemsPasted), false); 590OffsetLocationViewStates(new Vector(offsetValue, offsetValue), itemsPasted, GetTransitionModelItems(itemsPasted), false);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
1787Vector offset = new Vector(newLocation.X - oldLocation.X, newLocation.Y - oldLocation.Y);
System.Activities.Presentation (23)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
763locations[viewElement] = Vector.Add(new Vector(-topLeftPoint.X, -topLeftPoint.Y), locations[viewElement]);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (6)
179case EdgeLocation.Left: return new Vector(-small / 2, 0); 180case EdgeLocation.Right: return new Vector(small / 2, 0); 181case EdgeLocation.Top: return new Vector(0, -small / 2); 182case EdgeLocation.Bottom: return new Vector(0, small / 2); 186return new Vector(); 193return new Vector(-rectSize.Width / 2, -rectSize.Height / 2);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (2)
37Vector firstSegmentPointingVector = new Vector(pointCollection[i].X - pointCollection[i - 1].X, pointCollection[i].Y - pointCollection[i - 1].Y); 38Vector secondSegmentPointingVector = new Vector(pointCollection[i + 1].X - pointCollection[i].X, pointCollection[i + 1].Y - pointCollection[i].Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (9)
133Rect rect = new Rect(Point.Add(panel.TranslatePoint(FreeFormPanel.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize); 1194this.point1 = Point.Add(this.point1, new Vector(extendedLength, 0)); 1195this.point2 = Point.Add(this.point2, new Vector(-extendedLength, 0)); 1199this.point1 = Point.Add(this.point1, new Vector(-extendedLength, 0)); 1200this.point2 = Point.Add(this.point2, new Vector(extendedLength, 0)); 1207this.point1 = Point.Add(this.point1, new Vector(0, extendedLength)); 1208this.point2 = Point.Add(this.point2, new Vector(0, -extendedLength)); 1212this.point1 = Point.Add(this.point1, new Vector(0, -extendedLength)); 1213this.point2 = Point.Add(this.point2, new Vector(0, extendedLength));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (5)
102moveDir = new Vector(0, FreeFormPanel.GridSize); 105moveDir = new Vector(0, -FreeFormPanel.GridSize); 108moveDir = new Vector(FreeFormPanel.GridSize, 0); 111moveDir = new Vector(-FreeFormPanel.GridSize, 0); 115moveDir = new Vector(0, 0);
WindowsBase (14)
Base\System\Windows\Generated\Vector.cs (1)
166value = new Vector(
Base\System\Windows\Point.cs (3)
115return new Vector(point1._x - point2._x, point1._y - point2._y); 128return new Vector(point1._x - point2._x, point1._y - point2._y); 169return new Vector(point._x, point._y);
Base\System\Windows\Size.cs (1)
141return new Vector(size._width, size._height);
Base\System\Windows\Vector.cs (9)
113return new Vector(-vector._x,-vector._y); 130return new Vector(vector1._x + vector2._x, 139return new Vector(vector1._x + vector2._x, 148return new Vector(vector1._x - vector2._x, 157return new Vector(vector1._x - vector2._x, 182return new Vector(vector._x * scalar, 191return new Vector(vector._x * scalar, 200return new Vector(vector._x * scalar, 209return new Vector(vector._x * scalar,
613 references to Vector
PresentationCore (384)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (21)
140return (Size)InterpolateVector((Vector)from, (Vector)to, progress); 143internal static System.Windows.Vector InterpolateVector(System.Windows.Vector from, System.Windows.Vector to, Double progress) 224internal static System.Windows.Vector AddVector(System.Windows.Vector value1, System.Windows.Vector value2) 328internal static System.Windows.Vector SubtractVector(System.Windows.Vector value1, System.Windows.Vector value2) 478return Math.Abs(((System.Windows.Vector)to - (System.Windows.Vector)from).Length); 493internal static Double GetSegmentLengthVector(System.Windows.Vector from, System.Windows.Vector to) 588return (Size)((System.Windows.Vector)value * factor); 591internal static System.Windows.Vector ScaleVector(System.Windows.Vector value, Double factor) 733internal static bool IsValidAnimationValueVector(System.Windows.Vector value) 817internal static System.Windows.Vector GetZeroValueVector(System.Windows.Vector baseValue)
Core\CSharp\MS\Internal\Ink\Bezier.cs (20)
57Vector vector = GetBezierPoint(0); 134private bool AddBezierSegment(CuspData data, int from, ref Vector tanStart, int to, ref Vector tanEnd) 197Vector tanEnd = new Vector(0, 0); 198Vector tanStart = new Vector(0, 0); 277Vector P = (tt * ss) * data.XY(from + 1); 278Vector B = third * (P + (1 - s * tt) * data.XY(from) - (t * ss) * data.XY(from + 1)); 312private bool AddLeastSquares(CuspData data, int from, ref Vector V, int to, ref Vector W) 436Vector P = d01 * d02 * d03 * data.XY(i[0]) - 450private void AddBezierPoint(Vector point) 473private Vector DeCasteljau(int iFirst, double t) 480Vector Q0 = s * GetBezierPoint(iFirst) + t * GetBezierPoint(iFirst + 1); 481Vector Q1 = s * GetBezierPoint(iFirst + 1) + t * GetBezierPoint(iFirst + 2); 482Vector Q2 = s * GetBezierPoint(iFirst + 2) + t * GetBezierPoint(iFirst + 3); 504Vector[] Q = new Vector[4]; 530Vector vector = GetBezierPoint(iFirst + 3); 570private Vector GetBezierPoint(int index) 572return (Vector)_bezierControlPoints[index];
Core\CSharp\MS\Internal\Ink\ContourSegment.cs (4)
57internal Vector Vector { get { return _vector; } } 61internal Vector Radius { get { return _radius; } } 66private Vector _vector; 67private Vector _radius;
Core\CSharp\MS\Internal\Ink\CuspData.cs (4)
181internal Vector XY(int i) 239internal bool Tangent(ref Vector ptT, int nAt, int nPrevCusp, int nNextCusp, bool bReverse, bool bIsCusp) 323Vector V = XY(iCurrent) - XY(iPrev); 324Vector W = XY(iNext) - XY(iCurrent);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (38)
98Vector spine = endNode.Position - beginNode.Position; 126Vector rad = spine; 133Vector vectorToLeftTangent, vectorToRightTangent; 234Vector hitBegin = hitBeginPoint - bigNode.Position; 235Vector hitEnd = hitEndPoint - bigNode.Position; 248Vector nearest = GetNearest(hitBegin, hitEnd); 256Vector spineVector = smallNode.Position - bigNode.Position; 286Vector spineVector; 337Vector hitBegin = hitSegment.Begin - bigNode.Position; 338Vector hitEnd = hitBegin + hitSegment.Vector; 346Vector nearest = GetNearest(hitBegin, hitEnd); 391Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 392Vector hitBegin = hitBeginPoint - endNode.Position; 393Vector hitEnd = hitEndPoint - endNode.Position; 407Vector nearest = GetNearest(hitBegin, hitEnd); 469Vector spineVector = beginNode.IsEmpty ? new Vector(0, 0) : (beginNode.Position - endNode.Position); 499Vector hitBegin = hitSegment.Begin - endNode.Position; 500Vector hitEnd = hitBegin + hitSegment.Vector; 513Vector nearest = GetNearest(hitBegin, hitEnd); 613private static double ClipTest(Vector spineVector, double beginRadius, double endRadius, Vector hitBegin, Vector hitEnd) 621Vector nearest = GetNearest(hitBegin, hitEnd); 645Vector hitVector = hitEnd - hitBegin; 647if (DoubleUtil.IsZero(Vector.Determinant(spineVector, hitVector))) 657Vector P1Xp = hitBegin + (hitVector * x); 667Vector P1P2p = spineVector + GetProjection(-spineVector, P1Xp - spineVector); 681Vector S = spineVector * findex; 716private static double ClipTest(Vector spine, double beginRadius, double endRadius, Vector hit) 776private static HitResult WhereIsNodeAboutSegment(Vector spine, Vector segBegin, Vector segEnd) 779Vector segVector = segEnd - segBegin; 782&& !DoubleUtil.IsZero(Vector.Determinant(spine, segVector))) 799Vector spineVector, Vector hitBegin, Vector hitEnd, double endRadius, double beginRadius, ref StrokeFIndices result)
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (3)
291Vector begin = back2 - back1; 292Vector end = path[i] - back1; 298Vector v = (begin + (end - begin) * findex);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
2772private Vector _himetricSize = new Vector(0.0f, 0.0f);
Core\CSharp\MS\Internal\Ink\Lasso.cs (12)
175Vector lassoSegment = lassoPoint - prevLassoPoint; 519Vector vector = point - lastPoint; 811private static double FindIntersection(Vector hitBegin, Vector hitEnd, Vector orgBegin, Vector orgEnd) 868Vector AB = orgEnd - orgBegin; // B - A 869Vector CA = orgBegin - hitBegin; // A - C 870Vector CD = hitEnd - hitBegin; // D - C 871double det = Vector.Determinant(AB, CD); 879double r = AdjustFIndex(Vector.Determinant(AB, CA) / det); 884double s = AdjustFIndex(Vector.Determinant(CD, CA) / det);
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (3)
236Vector[] vertices = _operations.GetVertices(); 357Vector[] vertices = _operations.GetVertices(); 622Vector[] vertices = _operations.GetVertices();
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (41)
95boundingBox.Location += (Vector)node.Position; 210Vector spine = endNode.Position - beginNode.Position; 218Vector connection = spine + _vertices[i] * pressureDelta; 276((pressureDelta != 0) && Vector.Determinant(quad.B - quad.A, quad.D - quad.A) == 0)) // (1) 321Vector hitBegin = hitBeginPoint - position, hitEnd = hitEndPoint - position; 344Vector hitBegin = hitBeginPoint - beginNode.Position; 345Vector hitEnd = hitEndPoint - beginNode.Position; 362Vector vertex = new Vector(); 390Vector nextVertex = (pressureFactor == 1) ? _vertices[i] : (_vertices[i] * pressureFactor); 414Vector spineVector = endNode.Position - beginNode.Position; 489Vector hitBegin = hitBeginPoint - position; 490Vector hitEnd = hitEndPoint - position; 583Vector spineVector = (endNode.Position - beginNode.Position) / beginNode.PressureFactor; 584Vector spineVectorReversed = (beginNode.Position - endNode.Position) / endNode.PressureFactor; 693private double ClipTest(Vector spineVector, double pressureDelta, Vector hitBegin, Vector hitEnd) 710Vector hitVector = hitEnd - hitBegin; 711Vector lastVertex = _vertices[_vertices.Length - 1]; 718Vector nextNode = spineVector + lastVertex * pressureDelta; 723Vector vertex = _vertices[k % count]; 724Vector nextVertex = vertex - lastVertex; 727Vector nextVertexNextNode = spineVector + (vertex * pressureDelta); 747Vector hitPoint = ((0 == i) ? hitBegin : hitEnd) - lastVertex; 795double det = -Vector.Determinant(nextNode, hitVector); 798double s = Vector.Determinant(hitVector, hitBegin - lastVertex) / det; 822private double ClipTestArc(Vector spineVector, double pressureDelta, Vector hitCenter, Vector hitRadius) 931internal Vector[] GetVertices() 974Vector hitCenter = hitSegment.Begin + hitSegment.Radius - position; 975Vector hitRadius = hitSegment.Radius; 999Vector hitBegin = hitSegment.Begin - position; 1000Vector hitEnd = hitBegin + hitSegment.Vector; 1056Vector hitBegin, hitEnd; 1096Vector vertex = new Vector(); 1122Vector nextVertex = _vertices[i] * pressureFactor; 1152Vector spineVector = endNode.Position - beginNode.Position; 1224Vector hitBegin, hitEnd; 1285ContourSegment hitSegment, StrokeNodeData beginNode, Vector spineVector, double pressureDelta) 1344protected Vector[] _vertices;
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (56)
43internal static bool HitTestPolygonSegment(Vector[] vertices, Vector hitBegin, Vector hitEnd) 49Vector vertex = vertices[count - 1]; 52Vector nextVertex = vertices[i]; 87Vector zeroVector = new Vector(0, 0); 88Vector hitVector = hitEnd - hitBegin; 89Vector vertex = quad[count - 1] - hitBegin; 93Vector nextVertex = quad[i] - hitBegin; 120internal static bool HitTestPolygonCircle(Vector[] vertices, Vector center, Vector radius) 163internal static bool HitTestQuadCircle(Quad quad, Point center, Vector radius) 207Vector hitBegin, Vector hitEnd, Vector orgBegin, Vector orgEnd) 270Vector AB = orgEnd - orgBegin; // B - A 271Vector CA = orgBegin - hitBegin; // A - C 272Vector CD = hitEnd - hitBegin; // D - C 273double det = Vector.Determinant(AB, CD); 300if (DoubleUtil.IsZero(Vector.Determinant(CD, CA)) || DoubleUtil.GreaterThan(Vector.Determinant(AB, CA), 0)) 308double r = AdjustFIndex(Vector.Determinant(AB, CA) / det); 313double s = AdjustFIndex(Vector.Determinant(CD, CA) / det); 345Vector center, Vector radius, Vector segBegin, Vector segEnd) 360Vector segVector = segEnd - segBegin; 382Vector normal = segBegin + (segVector * findex); 405internal static HitResult WhereIsVectorAboutVector(Vector vector1, Vector vector2) 407double determinant = Vector.Determinant(vector1, vector2); 418internal static HitResult WhereIsVectorAboutArc(Vector hitVector, Vector arcBegin, Vector arcEnd) 460internal static Vector TurnLeft(Vector vector) 472internal static Vector TurnRight(Vector vector) 501internal static double GetPositionBetweenLines(Vector linesVector, Vector nextLine, Vector hitPoint) 503Vector nearestOnFirst = GetProjection(-hitPoint, linesVector - hitPoint); 506Vector nearestOnSecond = GetProjection(hitPoint, hitPoint + linesVector); 508Vector shortest = nearestOnFirst - nearestOnSecond; 523internal static double GetProjectionFIndex(Vector begin, Vector end) 525Vector segment = end - begin; 543internal static Vector GetProjection(Vector begin, Vector end) 555internal static Vector GetNearest(Vector begin, Vector end)
Core\CSharp\MS\Internal\Ink\StylusShape.cs (11)
108internal Vector[] GetVerticesAsVectors() 110Vector[] vertices; 115vertices = new Vector[m_vertices.Length]; 121vertices[i] = (Vector)m_vertices[i]; 128vertices[i] = _transform.Transform((Vector)m_vertices[i]); 143vertices = new Vector[p.Length]; 146vertices[i] = (Vector)p[i]; 234private void FixCounterClockwiseVertices(Vector[] vertices) 245Vector edge = vertex - prevVertex; 248double det = Vector.Determinant(edge, (Point)vertices[(i + 1) % vertices.Length] - (Point)vertex); 270Vector tmp = vertices[j];
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (6)
522Vector dir = uv2 - uv1; 747private double IntersectRayLine(Point o, Vector d, Point p1, Point p2, out bool coinc) 924Vector dir = uv2 - uv1; 1013double crossProduct = Vector.CrossProduct(polygon[(i + 1) % polygon.Length] - polygon[i], 1050Vector v1 = mousePos - edges[i]._p1Transformed; 1051Vector v2 = edges[i]._p2Transformed - edges[i]._p1Transformed;
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (2)
852Vector spine = (Point)stylusPoints[index] - (Point)stylusPoints[index - 1]; 862Vector spine = (Point)stylusPoints[index + 1] - (Point)stylusPoints[index];
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
377Vector spine = p2 - p1;
Core\CSharp\System\Windows\Input\InertiaExpansionBehavior.cs (6)
29internal InertiaExpansionBehavior(Vector initialVelocity) 37public Vector InitialVelocity 70public Vector DesiredExpansion 97internal static void ApplyParameters(InertiaExpansionBehavior behavior, InertiaProcessor2D processor, Vector initialVelocity) 131private Vector _initialVelocity = new Vector(double.NaN, double.NaN); 135private Vector _desiredExpansion = new Vector(double.NaN, double.NaN);
Core\CSharp\System\Windows\Input\InertiaTranslationBehavior.cs (4)
29internal InertiaTranslationBehavior(Vector initialVelocity) 37public Vector InitialVelocity 92internal static void ApplyParameters(InertiaTranslationBehavior behavior, InertiaProcessor2D processor, Vector initialVelocity) 121private Vector _initialVelocity = new Vector(double.NaN, double.NaN);
Core\CSharp\System\Windows\Input\ManipulationDelta.cs (6)
17public ManipulationDelta(Vector translation, double rotation, Vector scale, Vector expansion) 29public Vector Translation 49public Vector Scale 59public Vector Expansion
Core\CSharp\System\Windows\Input\ManipulationVelocities.cs (4)
20public ManipulationVelocities(Vector linearVelocity, double angularVelocity, Vector expansionVelocity) 31public Vector LinearVelocity 51public Vector ExpansionVelocity
Core\CSharp\System\Windows\Interop\HwndPanningFeedback.cs (1)
86public void UpdatePanningFeedback(Vector totalOverpanOffset, bool inInertia)
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
1496public DiscreteVectorKeyFrame(Vector value) 1504public DiscreteVectorKeyFrame(Vector value, KeyTime keyTime) 1532protected override Vector InterpolateValueCore(Vector baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
1801public EasingVectorKeyFrame(Vector value) 1810public EasingVectorKeyFrame(Vector value, KeyTime keyTime) 1820public EasingVectorKeyFrame(Vector value, KeyTime keyTime, IEasingFunction easingFunction) 1849protected override Vector InterpolateValueCore(Vector baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
2784protected VectorKeyFrame(Vector value) 2793protected VectorKeyFrame(Vector value, KeyTime keyTime) 2836typeof(Vector), 2851Value = (Vector)value; 2858public Vector Value 2862return (Vector)GetValue(ValueProperty); 2879public Vector InterpolateValue( 2880Vector baseValue, 2900protected abstract Vector InterpolateValueCore( 2901Vector baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
1129public LinearVectorKeyFrame(Vector value) 1137public LinearVectorKeyFrame(Vector value, KeyTime keyTime) 1163protected override Vector InterpolateValueCore(Vector baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
1913public SplineVectorKeyFrame(Vector value) 1922public SplineVectorKeyFrame(Vector value, KeyTime keyTime) 1932public SplineVectorKeyFrame(Vector value, KeyTime keyTime, KeySpline keySpline) 1966protected override Vector InterpolateValueCore(Vector baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (32)
45private Vector[] _keyValues; 60Type typeofProp = typeof(Vector?); 69new PropertyMetadata((Vector?)null, propCallback), 76new PropertyMetadata((Vector?)null, propCallback), 83new PropertyMetadata((Vector?)null, propCallback), 107public VectorAnimation(Vector toValue, Duration duration) 119public VectorAnimation(Vector toValue, Duration duration, FillBehavior fillBehavior) 132public VectorAnimation(Vector fromValue, Vector toValue, Duration duration) 145public VectorAnimation(Vector fromValue, Vector toValue, Duration duration, FillBehavior fillBehavior) 218protected override Vector GetCurrentValueCore(Vector defaultOriginValue, Vector defaultDestinationValue, AnimationClock animationClock) 235Vector from = new Vector(); 236Vector to = new Vector(); 237Vector accumulated = new Vector(); 238Vector foundation = new Vector(); 352Vector accumulator = AnimatedTypeHelpers.SubtractVector(to, from); 377_keyValues = new Vector[2]; 384_keyValues = new Vector[2]; 391_keyValues = new Vector[1]; 398_keyValues = new Vector[1]; 404_keyValues = new Vector[1]; 425Vector? typedValue = (Vector?)value; 445public Vector? From 449return (Vector?)GetValue(FromProperty); 465public Vector? To 469return (Vector?)GetValue(ToProperty); 485public Vector? By 489return (Vector?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationBase.cs (9)
103return GetCurrentValue((Vector)defaultOriginValue, (Vector)defaultDestinationValue, animationClock); 115return typeof(Vector); 152public Vector GetCurrentValue(Vector defaultOriginValue, Vector defaultDestinationValue, AnimationClock animationClock) 215protected abstract Vector GetCurrentValueCore(Vector defaultOriginValue, Vector defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (8)
331protected sealed override Vector GetCurrentValueCore( 332Vector defaultOriginValue, 333Vector defaultDestinationValue, 359Vector currentIterationValue; 395Vector fromValue; 643private Vector GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Vector prevKeyValue = _keyFrames[index - 1].Value; 958Vector currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (1)
39private Vector _accumulatingOffset = new Vector();
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (2)
38private Vector _accumulatingVector = new Vector(); 180return defaultOriginValue + (Vector)pathPoint;
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (1)
326rectangle.Offset((Vector)glyphRun.BaselineOrigin);
Core\CSharp\System\Windows\Media\ContainerVisual.cs (1)
197public Vector Offset
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (4)
866type == typeof(Vector) || 941else if (t == typeof(Vector)) 943Vector v = (Vector)value;
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (43)
54public sealed partial class VectorCollection : Freezable, IFormattable, IList, IList<Vector> 99public void Add(Vector value) 120public bool Contains(Vector value) 130public int IndexOf(Vector value) 140public void Insert(int index, Vector value) 155public bool Remove(Vector value) 211public Vector this[int index] 252public void CopyTo(Vector[] array, int index) 272bool ICollection<Vector>.IsReadOnly 296IEnumerator<Vector> IEnumerable<Vector>.GetEnumerator() 309return ((ICollection<Vector>)this).IsReadOnly; 344if (value is Vector) 346return Contains((Vector)value); 354if (value is Vector) 356return IndexOf((Vector)value); 370if (value is Vector) 372Remove((Vector)value); 470internal Vector Internal_GetItem(int i) 481private Vector Cast(object value) 488if (!(value is Vector)) 493return (Vector) value; 499private int AddHelper(Vector value) 510internal int AddWithoutFiringPublicEvents(Vector value) 566_collection = new FrugalStructList<Vector>(count); 585_collection = new FrugalStructList<Vector>(count); 604_collection = new FrugalStructList<Vector>(count); 623_collection = new FrugalStructList<Vector>(count); 755Vector value; 794internal FrugalStructList<Vector> _collection; 804public struct Enumerator : IEnumerator, IEnumerator<Vector> 815_current = default(Vector); 895public Vector Current 918private Vector _current; 940_collection = new FrugalStructList<Vector>(); 949_collection = new FrugalStructList<Vector>(capacity); 955public VectorCollection(IEnumerable<Vector> collection) 966ICollection<Vector> icollectionOfT = collection as ICollection<Vector>; 970_collection = new FrugalStructList<Vector>(icollectionOfT); 978_collection = new FrugalStructList<Vector>(icollection); 982_collection = new FrugalStructList<Vector>(); 984foreach (Vector item in collection)
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1910adjustedInkBoundingBox.Offset((Vector)BaselineOrigin);
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (1)
185rectangle.Offset((Vector)glyphRun.BaselineOrigin);
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (1)
125rectangle.Offset((Vector)glyphRun.BaselineOrigin);
Core\CSharp\System\Windows\Media\MatrixStack.cs (1)
133public void Push(Vector offset, bool combine)
Core\CSharp\System\Windows\Media\Visual.cs (3)
2821internal void InternalSetOffsetWorkaround(Vector offset) 3534protected internal Vector VisualOffset 5430private Vector _offset;
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
322public static Vector GetOffset(Visual reference)
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (1)
168public Vector Offset
Core\CSharp\System\Windows\UIElement.cs (1)
1285Vector oldOffset = VisualOffset;
Shared\MS\Internal\PointUtil.cs (1)
163Vector offset = VisualTreeHelper.GetOffset(v);
PresentationFramework (119)
src\Framework\MS\Internal\Documents\ColumnResult.cs (3)
55internal ColumnResult(FlowDocumentPage page, ref PTS.FSTRACKDESCRIPTION trackDesc, Vector contentOffset) 78internal ColumnResult(BaseParaClient subpage, ref PTS.FSTRACKDESCRIPTION trackDesc, Vector contentOffset) 323private readonly Vector _columnOffset;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
107Vector offset;
src\Framework\MS\Internal\Documents\ParagraphResult.cs (3)
949internal Vector ContentOffset 1064internal Vector ContentOffset 1237internal Vector ContentOffset
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
380internal Vector Offset 473private Vector _offset;
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1788Vector offset = new Vector(
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
3427private static void TransformToSubpage(ref Point point, Vector subpageOffset) 3437private static void TransformToSubpage(ref Rect rect, Vector subpageOffset) 3451private static void TransformFromSubpage(ref Rect rect, Vector subpageOffset) 3465private static void TransformFromSubpage(Geometry geometry, Vector subpageOffset)
src\Framework\MS\Internal\Ink\LassoHelper.cs (2)
99Vector last2next = point - _lastLassoPoint; 266Vector lassoSegment = lassoPoint - prevLassoPoint;
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
154Vector vector = point - _startPoint; 216Vector vector = point - _startPoint;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (2)
728Vector contentOffset = new Vector(); 794internal ReadOnlyCollection<ParagraphResult> GetParagraphResultsFromColumn(IntPtr pfstrack, Vector parentOffset, out bool hasTextContent)
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (2)
734Vector contentOffset = new Vector(); 800internal ReadOnlyCollection<ParagraphResult> GetParagraphResultsFromColumn(IntPtr pfstrack, Vector parentOffset, out bool hasTextContent)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
594internal ReadOnlyCollection<ParagraphResult> GetParagraphResultsFromColumn(IntPtr pfstrack, Vector parentOffset, out bool hasTextContent)
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
1028internal Vector FromTextDpi()
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (2)
611Vector contentOffset = new Vector(); 683internal ReadOnlyCollection<ParagraphResult> GetParagraphResultsFromColumn(IntPtr pfstrack, Vector parentOffset, out bool hasTextContent)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (6)
1602Vector offset = lineVisual.Offset; 1678Vector offset = lineVisual.Offset; 3526Vector offset = lineVisual.Offset; 3567Vector offset = lineVisual.Offset; 3939Vector offset = lineVisual.Offset; 4004Vector offset = lineVisual.Offset;
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
158internal override void Arrange(VisualCollection vc, Vector lineOffset)
src\Framework\MS\Internal\Text\Line.cs (1)
106internal virtual void Arrange(VisualCollection vc, Vector lineOffset)
src\Framework\System\Windows\Controls\Border.cs (1)
715Vector offset = new Vector(rect.TopLeft.X, rect.TopLeft.Y);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6571Vector v = new Vector(pt.X - (cellBounds.Width * 0.5), pt.Y - (cellBounds.Height * 0.5));
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
149Vector offset = VisualTreeHelper.GetOffset(_referenceHeader);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
882Vector offsetVector = VisualTreeHelper.GetOffset(FloatSourceHeader);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (12)
1850Vector transformedUnitX = popupTransform.Transform(new Vector(1.0, 0.0)); 1851Vector transformedUnitY = popupTransform.Transform(new Vector(0.0, 1.0)); 2025Vector bestTranslation = new Vector(_positionInfo.X, _positionInfo.Y); 2055Vector popupTranslation; 2067popupTranslation = ((Vector)placementTargetInterestPoints[(int)InterestPoint.TopLeft]) 2068+ ((Vector)customPlacements[i].Point); // vector from origin 2151Vector horizontalAxis = topRight - topLeft; 2187Vector verticalAxis = topLeft - bottomLeft; 2253Vector verticalAxis = bottomLeft - topLeft; 2275Vector horizontalAxis = topRight - topLeft; 2305Vector offset = new Vector(HorizontalOffset, VerticalOffset); 2407Vector offset = _popupRoot.Value.AnimationOffset;
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (1)
108internal Vector AnimationOffset
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
771private Vector _thumbOffset;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
848Vector computedOffset = new Vector( 943internal Vector _offset; // Set scroll offset of content. Positive corresponds to a visually upward offset. 944internal Vector _computedOffset; // Actual (computed) scroll offset of content. "" ""
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (1)
240Vector childOffset = new Vector();
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (8)
37internal ScrollChangedEventArgs(Vector offset, Vector offsetChange, Size extent, Vector extentChange, Size viewport, Vector viewportChange) 189private Vector _offset; 190private Vector _offsetChange; 192private Vector _extentChange; 194private Vector _viewportChange;
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1913private bool CanStartScrollManipulation(Vector translation, out bool cancelManipulation) 2050public Vector UnusedTranslation
src\Framework\System\Windows\Controls\Stack.cs (11)
52Vector Offset { get; set; } 55Vector ComputedOffset { get; set; } 246Vector newOffset = new Vector(); 640Vector offset = scrollData.Offset; 816private static void VerifyScrollingData(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size viewport, Size extent, Vector offset) 879private void MakeVisiblePhysicalHelper(Rect r, ref Vector newOffset, ref Rect newRect) 927private void MakeVisibleLogicalHelper(int childIndex, ref Vector newOffset, ref Rect newRect) 1125internal Vector _offset; // Scroll offset of content. Positive corresponds to a visually upward offset. 1126internal Vector _computedOffset = new Vector(0,0); 1132public Vector Offset 1168public Vector ComputedOffset
src\Framework\System\Windows\Controls\TextBlock.cs (12)
1493Vector contentOffset = CalcContentOffset(arrangeSize, wrappingWidth); 1500Vector lineOffset = contentOffset; 1601Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1762Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1896Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2143Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2225Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2281Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2382Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 3201private Vector CalcContentOffset(Size computedSize, double wrappingWidth) 3203Vector contentOffset = new Vector(); 3412Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (18)
492Vector oldViewportOffset = _scrollData._offset; 618Vector oldViewportOffset = _scrollData._offset; 1437Vector newOffset = new Vector(); 1506Vector oldOffset = _scrollData._offset; 9463Vector computedViewportOffset, viewportOffset; 9469Vector offsetForScrollViewerRemeasure = _scrollData._offset; 10270Vector oldViewportOffset = _scrollData._computedOffset; 10317Vector computedViewportOffset, viewportOffset; 10773Vector oldViewportOffset = _scrollData._computedOffset; 10842protected virtual void OnViewportOffsetChanged(Vector oldViewportOffset, Vector newViewportOffset) 11015private void MakeVisiblePhysicalHelper(Rect r, ref Vector newOffset, ref Rect newRect, bool isHorizontal, ref bool alignTop, ref bool alignBottom) 11072private void MakeVisibleLogicalHelper(int childIndex, Rect r, ref Vector newOffset, ref Rect newRect, ref bool alignTop, ref bool alignBottom) 11658internal Vector _offset; 11663internal Vector _computedOffset = new Vector(0,0); 11679public Vector Offset 11715public Vector ComputedOffset 12796private static void WriteVector(BinaryWriter writer, ref Vector vector)
src\Framework\System\Windows\FrameworkElement.cs (6)
4779Vector offset = ComputeAlignmentOffset(clientSize, clippedInkSize); 4822private Vector ComputeAlignmentOffset(Size clientSize, Size inkSize) 4824Vector offset = new Vector(); 4960Vector offset = ComputeAlignmentOffset(clippingSize, inkSize); 5184private void SetLayoutOffset(Vector offset, Size oldRenderSize) 5283Vector oldOffset = this.VisualOffset;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
800case 708: t = () => typeof(Vector); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10874typeof(System.Windows.Vector),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6252case KnownElements.Vector: t = typeof(System.Windows.Vector); break;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
603windowTopLeft -= (Vector)DpiHelper.DevicePixelsToLogical(new Point(adjustedOffset.Left, adjustedOffset.Top), dpi.DpiScaleX, dpi.DpiScaleY);
src\Framework\System\Windows\Window.cs (2)
7438private void UpdatePanningFeedback(Vector totalOverpanOffset, object originalSource) 8189internal void UpdatePanningFeedback(Vector totalOverpanOffset, bool animate)
System.Activities.Core.Presentation (10)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (3)
455PointCollection OffsetPointCollection(PointCollection collection, Vector offset) 471void OffSetViewState(Vector offsetVector, ModelItem modelItem, bool isUndoableViewState) 504void OffSetViewState(Vector offsetVector, List<ModelItem> modelItemsInMetaData)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (2)
1915Vector offset = newLocationPtr - oldLocationPoint; 2001Vector moveDir = FreeFormPanel.CalculateMovement(key, this.IsRightToLeft);
System\Activities\Core\Presentation\FreeFormPanelUtilities.cs (1)
21Vector dir = new Vector(1, 0); // Point to right.
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (1)
480void OffsetLocationViewStates(Vector offsetVector, IEnumerable<ModelItem> stateModelItems, IEnumerable<ModelItem> transitionModelItems, bool enableUndo)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (3)
1759void SetEndPointsAndInvalidateViewState(Connector connector, Vector offset, bool offsetSrc) 1787Vector offset = new Vector(newLocation.X - oldLocation.X, newLocation.Y - oldLocation.Y); 2097Vector moveDir = FreeFormPanel.CalculateMovement(key, this.IsRightToLeft);
System.Activities.Presentation (16)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
763locations[viewElement] = Vector.Add(new Vector(-topLeftPoint.X, -topLeftPoint.Y), locations[viewElement]);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (5)
49public Vector DrawingOffset 58public Vector HitTestOffset 168Vector GetOffset(double small, double large) 174Vector EdgeToDrawnMidPointOffset() 190Vector MidPointToTopLeftOffset(double small, double large)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (4)
37Vector firstSegmentPointingVector = new Vector(pointCollection[i].X - pointCollection[i - 1].X, pointCollection[i].Y - pointCollection[i - 1].Y); 38Vector secondSegmentPointingVector = new Vector(pointCollection[i + 1].X - pointCollection[i].X, pointCollection[i + 1].Y - pointCollection[i].Y); 41Point turningPoint1 = Point.Add(pointCollection[i - 1], Vector.Multiply(dist1 - RoundRadius, firstSegmentPointingVector)); 42Point turningPoint2 = Point.Add(pointCollection[i], Vector.Multiply(RoundRadius, secondSegmentPointingVector));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
110Vector vec = to - from; 951Vector sub = a2 - a1;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (2)
96public static Vector CalculateMovement(Key key, bool isRightToLeft) 98Vector moveDir;
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (1)
168Vector offset = Point.Subtract(currentPosition, this.panningStartPosition);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
758Vector difference = newPosition - this.lastMouseDownPoint;
WindowsBase (84)
Base\System\Windows\Converters\Generated\VectorValueSerializer.cs (5)
51if (!(value is Vector)) 67return Vector.Parse(value ); 81if (value is Vector) 83Vector instance = (Vector) value;
Base\System\Windows\Generated\Vector.cs (14)
62public static bool operator == (Vector vector1, Vector vector2) 79public static bool operator != (Vector vector1, Vector vector2) 95public static bool Equals (Vector vector1, Vector vector2) 114if ((null == o) || !(o is Vector)) 119Vector value = (Vector)o; 120return Vector.Equals(this,value); 134public bool Equals(Vector value) 136return Vector.Equals(this, value); 156public static Vector Parse(string source) 162Vector value;
Base\System\Windows\Generated\VectorConverter.cs (4)
95return Vector.Parse(source); 117if (destinationType != null && value is Vector) 119Vector instance = (Vector)value;
Base\System\Windows\Media\Matrix.cs (4)
380public Vector Transform(Vector vector) 382Vector newVector = vector; 391public void Transform(Vector[] vectors)
Base\System\Windows\Point.cs (7)
61public static Point operator + (Point point, Vector vector) 74public static Point Add(Point point, Vector vector) 87public static Point operator - (Point point, Vector vector) 100public static Point Subtract(Point point, Vector vector) 113public static Vector operator - (Point point1, Point point2) 126public static Vector Subtract(Point point1, Point point2) 167public static explicit operator Vector(Point point)
Base\System\Windows\Rect.cs (3)
92Vector vector): this(point, point+vector) 595public void Offset(Vector offsetVector) 625public static Rect Offset(Rect rect, Vector offsetVector)
Base\System\Windows\Size.cs (1)
139public static explicit operator Vector(Size size)
Base\System\Windows\Vector.cs (44)
84public static double CrossProduct(Vector vector1, Vector vector2) 97public static double AngleBetween(Vector vector1, Vector vector2) 111public static Vector operator - (Vector vector) 128public static Vector operator + (Vector vector1, Vector vector2) 137public static Vector Add(Vector vector1, Vector vector2) 146public static Vector operator - (Vector vector1, Vector vector2) 155public static Vector Subtract(Vector vector1, Vector vector2) 164public static Point operator + (Vector vector, Point point) 172public static Point Add(Vector vector, Point point) 180public static Vector operator * (Vector vector, double scalar) 189public static Vector Multiply(Vector vector, double scalar) 198public static Vector operator * (double scalar, Vector vector) 207public static Vector Multiply(double scalar, Vector vector) 216public static Vector operator / (Vector vector, double scalar) 224public static Vector Divide(Vector vector, double scalar) 232public static Vector operator * (Vector vector, Matrix matrix) 240public static Vector Multiply(Vector vector, Matrix matrix) 248public static double operator * (Vector vector1, Vector vector2) 261public static double Multiply(Vector vector1, Vector vector2) 274public static double Determinant(Vector vector1, Vector vector2) 287public static explicit operator Size(Vector vector) 299public static explicit operator Point(Vector vector)
Shared\MS\Internal\DoubleUtil.cs (2)
218public static bool AreClose(System.Windows.Vector vector1, System.Windows.Vector vector2)