SA.FullBodyIK.ComputeSinTheta C# (CSharp) Method

ComputeSinTheta() public static method

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

			return 0.0f;
		}
		

Same methods

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