Axiom.Core.Camera.GetCameraToViewportBoxVolume C# (CSharp) Метод

GetCameraToViewportBoxVolume() публичный Метод

Gets a world-space list of planes enclosing a volume based on a viewport rectangle.
Can be useful for populating a PlaneBoundedVolumeListSceneQuery, e.g. for a rubber-band selection.
public GetCameraToViewportBoxVolume ( Real screenLeft, Real screenTop, Real screenRight, Real screenBottom, bool includeFarPlane ) : PlaneBoundedVolume
screenLeft Real the left bound of the on-screen rectangle, expressed in normalized screen coordinates [0,1]
screenTop Real the upper bound of the on-screen rectangle, expressed in normalized screen coordinates [0,1]
screenRight Real the right bound of the on-screen rectangle, expressed in normalized screen coordinates [0,1]
screenBottom Real the lower bound of the on-screen rectangle, expressed in normalized screen coordinates [0,1]
includeFarPlane bool whether to include the far frustum plane
Результат Axiom.Math.PlaneBoundedVolume
        public PlaneBoundedVolume GetCameraToViewportBoxVolume(Real screenLeft, Real screenTop, Real screenRight, Real screenBottom, bool includeFarPlane)
        {
            var vol = new PlaneBoundedVolume();
            GetCameraToViewportBoxVolume(screenLeft, screenTop, screenRight, screenBottom,
                vol, includeFarPlane);
            return vol;
        }

Same methods

Camera::GetCameraToViewportBoxVolume ( Real screenLeft, Real screenTop, Real screenRight, Real screenBottom, PlaneBoundedVolume outVolume, bool includeFarPlane ) : void