SA.FullBodyIK.ComputeSinTheta C# (CSharp) 메소드

ComputeSinTheta() 공개 정적인 메소드

public static ComputeSinTheta ( FastLength lenA, FastLength lenB, FastLength lenC ) : float
lenA FastLength
lenB FastLength
lenC FastLength
리턴 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