Method ComputeFOVAt
ComputeFOVAt(Vector3, Vector3, Matrix4x4)
Compute the minimal FOV required to see the full influence volume from viewerPositionWS
while looking at lookAtPositionWS
.
Declaration
public float ComputeFOVAt(Vector3 viewerPositionWS, Vector3 lookAtPositionWS, Matrix4x4 influenceToWorld)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | viewerPositionWS | The viewer position in world space. |
Vector3 | lookAtPositionWS | The look at position in world space. |
Matrix4x4 | influenceToWorld | The influence to world matrix. |
Returns
Type | Description |
---|---|
float |