Method GetAxisClosestValue
GetAxisClosestValue(Vector3, Vector3)
What axis value would we need to get as close as possible to the desired cameraPos?
선언
public float GetAxisClosestValue(Vector3 cameraPos, Vector3 up)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Vector3 | cameraPos | camera position we would like to approximate |
Vector3 | up | world up |
반환
타입 | 설명 |
---|---|
float | The best value to put into the X axis, to approximate the desired camera pos |