33 references to M3DUtil
PresentationCore (33)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (5)
129_worldTransformation = M3DUtil.GetWorldTransformationMatrix(visual3D); 552if (M3DUtil.IsPointInTriangle(visEdgeStart, uv, p, out outputPoint)) 558if (M3DUtil.IsPointInTriangle(visEdgeEnd, uv, p, out outputPoint)) 568if (M3DUtil.IsPointInTriangle(visEdgeStart, uv, p, out outputPoint1) && 569M3DUtil.IsPointInTriangle(visEdgeEnd, uv, p, out outputPoint2))
MS\Internal\Media3D\M3DUtil.cs (3)
99M3DUtil.AddPointToBounds(ref p, ref newBounds); 388camera.GetProjectionMatrix(M3DUtil.GetAspectRatio(viewport.Size)) * 389M3DUtil.GetHomogeneousToViewportTransform3D(viewport);
System\Windows\Media3D\MatrixCamera.cs (1)
81Point np = M3DUtil.GetNormalizedPoint(p, viewSize);
System\Windows\Media3D\MeshGeometry3D.cs (3)
453Point3D pointHit = M3DUtil.Interpolate(ref v0, ref v1, ref v2, ref barycentric); 533_cachedBounds = M3DUtil.ComputeAxisAlignedBoundingBox(Positions); 559Rect3D actualBounds = M3DUtil.ComputeAxisAlignedBoundingBox(Positions);
System\Windows\Media3D\Model3D.cs (1)
103return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref innerBounds, Transform);
System\Windows\Media3D\OrthographicCamera.cs (3)
92Point np = M3DUtil.GetNormalizedPoint(p, viewSize); 94double aspectRatio = M3DUtil.GetAspectRatio(viewSize); 118M3DUtil.ComputeTransformedAxisAlignedBoundingBox(
System\Windows\Media3D\PerspectiveCamera.cs (4)
67double fov = M3DUtil.DegreesToRadians(FieldOfView); 107double fov = M3DUtil.DegreesToRadians(FieldOfView); 115Point np = M3DUtil.GetNormalizedPoint(p, viewSize); 125double aspectRatio = M3DUtil.GetAspectRatio(viewSize);
System\Windows\Media3D\Transform3D.cs (1)
125return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref rect, this);
System\Windows\Media3D\Vector3D.cs (1)
175return M3DUtil.RadiansToDegrees(theta);
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
78if (M3DUtil.IsPointInTriangle(point, uv, p, out point3D)) 119if (M3DUtil.IsPointInTriangle(point, uv, p, out point3D))
System\Windows\Media3D\Viewport3DVisual.cs (4)
507double aspectRatio = M3DUtil.GetAspectRatio(Viewport.Size); 516point2D *= M3DUtil.GetHomogeneousToViewportTransform(Viewport); 576double aspectRatio = M3DUtil.GetAspectRatio(viewport.Size); 579Matrix homoToLocal = M3DUtil.GetHomogeneousToViewportTransform(viewport);
System\Windows\Media3D\Visual3D.cs (5)
863return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref bounds, Transform); 1070Rect3D cachedBounds = M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref _bboxSubgraph, Transform); 1099return M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref currentSubgraphBounds, Transform); 1131bboxSubgraph = M3DUtil.ComputeTransformedAxisAlignedBoundingBox(ref _bboxSubgraph, Transform); 1804if (!M3DUtil.TryTransformToViewport3DVisual(this, out containingViewport, out projectionTransform))