core/client/game/src/shineLib/spine-unity/SkeletonExtensions.cs
/// <summary>Calculates a 2x2 Transformation Matrix that can convert a skeleton-space position to a bone-local position.</summary>
Calculates a 2x2 Transformation Matrix that can convert a skeleton-space position to a bone-local position.
Calculates a 2x2 Transformation Matrix that can convert a skeleton - space position to a bone - local position .
public static void GetWorldToLocalMatrix (this Bone bone, out float ia, out float ib, out float ic, out float id) {
			float a = bone.a, b = bone.b, c = bone.c, d = bone.d;
			float invDet = 1 / (a * d - b * c);
			ia = invDet * d;
			ib = invDet * -b;
			ic = invDet * -c;
			id = invDet * a;
		}
public static void GetWorldToLocalMatrix ( this Bone bone , out float ia , out float ib , out float ic , out float id ) { float a = bone . a , b = bone . b , c = bone . c , d = bone . d ; float invDet = 1 / ( a * d - b * c ) ; ia = invDet * d ; ib = invDet * - b ; ic = invDet * - c ; id = invDet * a ; }
Calculates a 2x2 Transformation Matrix that can convert a skeleton-space position to a bone-local position.
Calculates a 2x2 Transformation Matrix that can convert a skeleton - space position to a bone - local position .
Bone
this
float
out