AcTools.Render.Kn5SpecificSpecial.TrackMapRenderer.GetCamera C# (CSharp) Method

GetCamera() protected method

protected GetCamera ( ) : CameraOrtho
return AcTools.Render.Base.Cameras.CameraOrtho
        protected virtual CameraOrtho GetCamera() {
            if (!FilteredNode.BoundingBox.HasValue) {
                return new CameraOrtho();
            }

            var box = FilteredNode.BoundingBox.Value;
            return new CameraOrtho {
                Position = new Vector3(box.GetCenter().X, box.Maximum.Y + 1f, box.GetCenter().Z),
                FarZ = box.GetSize().Y + 2f,
                Target = box.GetCenter(),
                Up = new Vector3(0.0f, 0.0f, -1.0f),
                Width = box.GetSize().X + 2 * Margin / Scale,
                Height = box.GetSize().Z + 2 * Margin / Scale
            };
        }