文档

Unity Engine

Unity Engine

FocalLengthToFieldOfView(float, float)

Converts focal length to field of view.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float FocalLengthToFieldOfView(float focalLength, float sensorSize)

Parameters

focalLength

Focal length in millimeters.

sensorSize

Sensor size in millimeters. Use the sensor height to get the vertical field of view. Use the sensor width to get the horizontal field of view.

Returns

Type

Description

floatfield of view in degrees.