SA.FullBodyIK.ComputeCosTheta C# (CSharp) Method

ComputeCosTheta() public static method

public static ComputeCosTheta ( FastLength lenA, FastLength lenB, FastLength lenC ) : float
lenA FastLength
lenB FastLength
lenC FastLength
return float
		public static float ComputeCosTheta(
			FastLength lenA,
			FastLength lenB,
			FastLength lenC )
		{
			float bc2 = lenB.length * lenC.length * 2.0f;
			if( bc2 > IKEpsilon ) {
				return (lenB.lengthSq + lenC.lengthSq - lenA.lengthSq) / bc2;
			}

			return 0.0f;
		}

Same methods

FullBodyIK::ComputeCosTheta ( float lenASq, float lenBSq, float lenCSq, float lenB, float lenC ) : float
FullBodyIK