internal static AnimationProperties AnimationPropertysToAnimationProperties(AnimationPropertys property) { if (!Enum.IsDefined(typeof(AnimationProperties), property)) { throw new InvalidCastException("Failed to convert AnimationPropertys '" + property + "' to AnimationProperties"); } return((AnimationProperties)property); }
public static int GetElementCount(AnimationPropertys property) { switch (property) { case AnimationPropertys.Translation: return(3); case AnimationPropertys.EulerRotation: return(3); case AnimationPropertys.Rotation: return(4); case AnimationPropertys.Scale: return(3); case AnimationPropertys.BlendShape: return(1); default: throw new NotImplementedException(); } }
public static string GetPathName(AnimationPropertys property) { switch (property) { case AnimationPropertys.Translation: return(PATH_TRANSLATION); case AnimationPropertys.EulerRotation: case AnimationPropertys.Rotation: return(PATH_ROTATION); case AnimationPropertys.Scale: return(PATH_SCALE); case AnimationPropertys.BlendShape: return(PATH_WEIGHT); default: throw new NotImplementedException(); } }
public static string GetPathName(AnimationPropertys property) { return(GetPathName(AnimationPropertysToAnimationProperties(property))); }
public static int GetElementCount(AnimationPropertys property) { return(GetElementCount(AnimationPropertysToAnimationProperties(property))); }