32 references to M3DUtil
PresentationCore (32)
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (5)
144_worldTransformation = M3DUtil.GetWorldTransformationMatrix(visual3D); 567if (M3DUtil.IsPointInTriangle(visEdgeStart, uv, p, out outputPoint)) 573if (M3DUtil.IsPointInTriangle(visEdgeEnd, uv, p, out outputPoint)) 583if (M3DUtil.IsPointInTriangle(visEdgeStart, uv, p, out outputPoint1) && 584M3DUtil.IsPointInTriangle(visEdgeEnd, uv, p, out outputPoint2))
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (3)
103M3DUtil.AddPointToBounds(ref p, ref newBounds); 392camera.GetProjectionMatrix(M3DUtil.GetAspectRatio(viewport.Size)) * 393M3DUtil.GetHomogeneousToViewportTransform3D(viewport);
Core\CSharp\System\Windows\Media3D\MatrixCamera.cs (1)
94Point np = M3DUtil.GetNormalizedPoint(p, viewSize);
Core\CSharp\System\Windows\Media3D\MeshGeometry3D.cs (3)
464Point3D pointHit = M3DUtil.Interpolate(ref v0, ref v1, ref v2, ref barycentric); 544_cachedBounds = M3DUtil.ComputeAxisAlignedBoundingBox(Positions); 570Rect3D actualBounds = M3DUtil.ComputeAxisAlignedBoundingBox(Positions);
Core\CSharp\System\Windows\Media3D\Model3D.cs (1)
112return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref innerBounds, Transform);
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (3)
99Point np = M3DUtil.GetNormalizedPoint(p, viewSize); 101double aspectRatio = M3DUtil.GetAspectRatio(viewSize); 125M3DUtil.ComputeTransformedAxisAlignedBoundingBox(
Core\CSharp\System\Windows\Media3D\PerspectiveCamera.cs (4)
74double fov = M3DUtil.DegreesToRadians(FieldOfView); 114double fov = M3DUtil.DegreesToRadians(FieldOfView); 122Point np = M3DUtil.GetNormalizedPoint(p, viewSize); 132double aspectRatio = M3DUtil.GetAspectRatio(viewSize);
Core\CSharp\System\Windows\Media3D\Transform3D.cs (1)
134return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref rect, this);
Core\CSharp\System\Windows\Media3D\Vector3D.cs (1)
184return M3DUtil.RadiansToDegrees(theta);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (2)
104if (M3DUtil.IsPointInTriangle(point, uv, p, out point3D)) 145if (M3DUtil.IsPointInTriangle(point, uv, p, out point3D))
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (4)
522double aspectRatio = M3DUtil.GetAspectRatio(Viewport.Size); 531point2D *= M3DUtil.GetHomogeneousToViewportTransform(Viewport); 591double aspectRatio = M3DUtil.GetAspectRatio(viewport.Size); 594Matrix homoToLocal = M3DUtil.GetHomogeneousToViewportTransform(viewport);
Core\CSharp\System\Windows\Media3D\Visual3D.cs (4)
887return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref bounds, Transform); 1094Rect3D cachedBounds = M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref _bboxSubgraph, Transform); 1155bboxSubgraph = M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref _bboxSubgraph, Transform); 1843if (!M3DUtil.TryTransformToViewport3DVisual(this, out containingViewport, out projectionTransform))