示例#1
0
        public FieldOfView(Float2 fieldOfView) : this(fieldOfView.x, fieldOfView.y, 0f)
        {
            Float2 radians = fieldOfView * 0.5f * Scalars.DegreeToRadian;

            aspect = (float)(Math.Tan(radians.x) / Math.Tan(radians.y));
        }