SA.FullBodyIK._ComputeThetaAxis C# (CSharp) Method

_ComputeThetaAxis() static private method

static private _ComputeThetaAxis ( Vector3 &origPos, Vector3 &fromPos, Vector3 &toPos, float &theta, Vector3 &axis ) : bool
origPos Vector3
fromPos Vector3
toPos Vector3
theta float
axis Vector3
return bool
		static bool _ComputeThetaAxis(
			ref Vector3 origPos,
			ref Vector3 fromPos,
			ref Vector3 toPos,
			out float theta,
			out Vector3 axis )
		{
			Vector3 dirFrom = fromPos - origPos;
			Vector3 dirTo = toPos - origPos;
			if( !SAFBIKVecNormalize2( ref dirFrom, ref dirTo ) ) {
				theta = 0.0f;
				axis = new Vector3( 0.0f, 0.0f, 1.0f );
				return false;
			}

			return _ComputeThetaAxis( ref dirFrom, ref dirTo, out theta, out axis );
		}

Same methods

FullBodyIK::_ComputeThetaAxis ( Vector3 &dirFrom, Vector3 &dirTo, float &theta, Vector3 &axis ) : bool
FullBodyIK