SA.FullBodyIK.ComputeSinTheta C# (CSharp) Method

ComputeSinTheta() public static method

public static ComputeSinTheta ( float lenASq, float lenBSq, float lenCSq, float lenB, float lenC ) : float
lenASq float
lenBSq float
lenCSq float
lenB float
lenC float
return float
		public static float ComputeSinTheta(
			float lenASq,
			float lenBSq,
			float lenCSq,
			float lenB,
			float lenC )
		{
			float bc2 = lenB * lenC * 2.0f;
			if( bc2 > IKEpsilon ) {
				float cs = (lenBSq + lenCSq - lenASq) / bc2;
				return SAFBIKSqrtClamp01( 1.0f - cs * cs );
			}

			return 0.0f;
		}

Same methods

FullBodyIK::ComputeSinTheta ( FastLength lenA, FastLength lenB, FastLength lenC ) : float
FullBodyIK