Vector3.AngleBetween

AngleBetween(Vector3, Vector3)

Calculate the inner angle between two direction Two direction can be non-normalized vectors

public double AngleBetween(Vector3 dir, Vector3 up)
ParameterTypeDescription
dirVector3The direction vector to compare with
upVector3The up vector of the two direction’s shared plane

Return Value

inner angle in radian

See Also


AngleBetween(Vector3)

Calculate the inner angle between two direction Two direction can be non-normalized vectors

public double AngleBetween(Vector3 dir)
ParameterTypeDescription
dirVector3The direction vector to compare with

Return Value

inner angle in radian

See Also