Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (44)
61_p1Transformed = new Point(projPoint1.X, projPoint1.Y);
62_p2Transformed = new Point(projPoint2.X, projPoint2.Y);
517(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) ||
518(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y))))
619if (Math.Abs(visUV1.X - visUV2.X) > Math.Abs(visUV1.Y - visUV2.Y))
676if (visUV1.Y <= visUV2.Y)
687if (triUV1.Y <= triUV2.Y)
706if (minVisUV.Y < minTriUV.Y)
714p1 = minTri3D + (minVisUV.Y - minTriUV.Y) / (maxTriUV.Y - minTriUV.Y) * (maxTri3D - minTri3D);
718if (maxVisUV.Y > maxTriUV.Y)
726p2 = minTri3D + (maxVisUV.Y - minTriUV.Y) / (maxTriUV.Y - minTriUV.Y) * (maxTri3D - minTri3D);
752double dy = p2.Y - p1.Y;
770double numer = (o.X - p1.X) * dy / dx - o.Y + p1.Y;
776double b0 = -o.X * dy / dx + o.Y;
777double b1 = -p1.X * dy / dx + p1.Y;
935(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) ||
936(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y))))
1125if (ptRelToCapture.Y <= _visualBounds.Top + 1) ptRelToCapture.Y -= BUFFER_SIZE;
1127if (ptRelToCapture.Y >= _visualBounds.Bottom - 1) ptRelToCapture.Y += BUFFER_SIZE;
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (11)
271inkBoundingBox.Y += glyphRun.BaselineOrigin.Y;
340origin.Y += vectorToOrigin.Y;
344xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth, line.PixelsPerDip) - vectorToOrigin.X - u + origin.X, v + origin.Y);
348xy = new Point(u + vectorToOrigin.X + origin.X, v + origin.Y);
373origin.Y += vectorToOrigin.Y;
377xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth - u, line.PixelsPerDip) - vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y);
381xy = new Point(line.Formatter.IdealToReal(u, line.PixelsPerDip) + vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y);
407origin.Y += vectorToOrigin.Y;
418nominalY = v + TextFormatterImp.RealToIdeal(origin.Y);
452if(DoubleUtil.AreClose(rect.TopLeft.Y, rect.BottomRight.Y))
Core\CSharp\System\Windows\Interop\HwndSource.cs (9)
1043NativeMethods.RECT rect = new NativeMethods.RECT(0, 0, (int)pt.X, (int)pt.Y);
1070size = new Point(DoubleUtil.DoubleToInt(size.X), DoubleUtil.DoubleToInt(size.Y));
1074size = new Point(Math.Ceiling(size.X), Math.Ceiling(size.Y));
1376return new Size(convertedPt.X, convertedPt.Y);
1665Point relevantPt = new Point(pt.X, pt.Y);
1671NativeMethods.RECT rect = new NativeMethods.RECT(0, 0, (int)pt.X, (int)pt.Y);
1684(_sizeToContent == SizeToContent.Height ? double.PositiveInfinity : relevantPt.Y));
1711if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y);
1713else sz = new Size(relevantPt.X, relevantPt.Y);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (25)
466dc.DrawLine(pen, startPoint, new Point(startPoint.X + tickLen, startPoint.Y));
467dc.DrawLine(pen, new Point(startPoint.X, endPoint.Y),
468new Point(startPoint.X + tickLen, endPoint.Y));
473yLines.Add(startPoint.Y - 0.5);
475yLines.Add(endPoint.Y - 0.5);
501double y = adjustedTick * logicalToPhysical + startPoint.Y;
517double y = i * logicalToPhysical + startPoint.Y;
533double y0 = (SelectionStart - Minimum) * logicalToPhysical + startPoint.Y;
546y0 = (SelectionEnd - Minimum) * logicalToPhysical + startPoint.Y;
573dc.DrawLine(pen, startPoint, new Point(startPoint.X, startPoint.Y + tickLen));
574dc.DrawLine(pen, new Point(endPoint.X, startPoint.Y),
575new Point(endPoint.X, startPoint.Y + tickLen));
580yLines.Add(startPoint.Y);
582yLines.Add(endPoint.Y + tickLen);
583yLines.Add(endPoint.Y + tickLen2);
609new Point(x, startPoint.Y),
610new Point(x, startPoint.Y + tickLen2));
625new Point(x, startPoint.Y),
626new Point(x, startPoint.Y + tickLen2));
639Point pt0 = new Point(x0, startPoint.Y);
640Point pt1 = new Point(x0, startPoint.Y + tickLen2);
641Point pt2 = new Point(x0 + Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
652pt0 = new Point(x0, startPoint.Y);
653pt1 = new Point(x0, startPoint.Y + tickLen2);
654pt2 = new Point(x0 - Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
src\Framework\System\Windows\Window.cs (48)
2615param.SetPosition((int)screenTopLeft.X, (int)screenTopLeft.Y);
2766_actualTop = currentLocationLogicalUnits.Y;
2800if (!DoubleUtil.IsNaN(requestedHeight) && (!DoubleUtil.AreClose(sizeDeviceUnits.Height, requestedSizeDeviceUnits.Y)))
2807sizeDeviceUnits.Height = requestedSizeDeviceUnits.Y;
2830if (!DoubleUtil.IsNaN(requestedTop) && (!DoubleUtil.AreClose(yDeviceUnits, requestedLocationDeviceUnits.Y)))
2833yDeviceUnits = requestedLocationDeviceUnits.Y;
2860if (!Double.IsPositiveInfinity(minSizeDeviceUnits.Y) && (sizeDeviceUnits.Height > maxSizeDeviceUnits.Y))
2863sizeDeviceUnits.Height = maxSizeDeviceUnits.Y;
2872if (sizeDeviceUnits.Height < minSizeDeviceUnits.Y)
2875sizeDeviceUnits.Height = minSizeDeviceUnits.Y;
3000if (CalculateWindowLocation(ref xDeviceUnits, ref yDeviceUnits, new Size(newSizeDeviceUnits.X, newSizeDeviceUnits.Y)))
3122DoubleUtil.DoubleToInt(ptDeviceUnits.Y),
3188UpdateHwndSizeOnWidthHeightChange(newWidth, sizeLogicalUnits.Y);
3571mm.minHeight = Math.Max(this.MinHeight, minSizeLogicalUnits.Y);
3576mm.maxHeight = Math.Min(this.MinHeight, maxSizeLogicalUnits.Y);
3582mm.maxHeight = Math.Min(MaxHeight, maxSizeLogicalUnits.Y);
3586mm.maxHeight = maxSizeLogicalUnits.Y;
3938ownerRectDeviceUnits = new Rect(ownerLocationDeviceUnits.X, ownerLocationDeviceUnits.Y,
3939ownerSizeDeviceUnits.X, ownerSizeDeviceUnits.Y);
4102return new Rect(locationDeviceUnits.X, locationDeviceUnits.Y, sizeDeviceUnits.X, sizeDeviceUnits.Y);
4116return new Rect(locationLogicalUnits.X, locationLogicalUnits.Y, sizeLogicalUnits.X, sizeLogicalUnits.Y);
4825SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
4897_windowMaxHeightDeviceUnits = Math.Max(_windowMaxHeightDeviceUnits, windowSize.Y);
4991!DoubleUtil.AreClose(_actualTop, ptLogicalUnits.Y))
4994_actualTop = ptLogicalUnits.Y;
5103mmi.ptMinTrackSize.y = DoubleUtil.DoubleToInt(minSizeDeviceUnits.Y);
5106mmi.ptMaxTrackSize.y = DoubleUtil.DoubleToInt(maxSizeDeviceUnits.Y);
5185(mousePositionWRTResizeGripControl.Y < 0 ) ||
5187(mousePositionWRTResizeGripControl.Y > _resizeGripControl.RenderSize.Height))
6026if (minHeight > logicalSize.Y)
6064if (maxHeight < logicalSize.Y)
6130UpdateHwndSizeOnWidthHeightChange(minWidth, logicalSize.Y);
6167UpdateHwndSizeOnWidthHeightChange(maxWidth, logicalSize.Y);
6214newTop = TransformWorkAreaScreenArea(new Point(0, newTop), TransformType.ScreenAreaToWorkArea).Y;
6216newTop = (LogicalToDeviceUnits(new Point(0, newTop))).Y;
6296retPt = new Point(pt.X + deltaX, pt.Y + deltaY);
6300retPt = new Point(pt.X - deltaX, pt.Y - deltaY);
6531DoubleUtil.DoubleToInt(ptDeviceUnits.Y),
7489if (!double.IsNaN(_prePanningLocation.X) && !double.IsNaN(_prePanningLocation.Y) && (_swh != null))
7494return new Point(point.X - (_prePanningLocation.X - windowLocation.X), point.Y - (_prePanningLocation.Y - windowLocation.Y));
8102return new Size(pt.X,pt.Y);
8135return new Size(Math.Max(0.0, pt.X), Math.Max(0.0, pt.Y));
8480Y = LogicalTopLeft.Y * dpiScaleY