public static string ToAttributeString(this PhalangeType _this) { if (_this < PhalangeType.Last) { return(_this.ToString()); } throw new ArgumentException(_this.ToString()); }
public Transform GetFingerTransform(device_type_t deviceType, FingerIndex finger, PhalangeType phalange) { switch (phalange) { case PhalangeType.Proximal: return(GetHand(deviceType).GetFingerRig(finger).Proximal); case PhalangeType.Intermedial: return(GetHand(deviceType).GetFingerRig(finger).Intermedial); case PhalangeType.Distal: return(GetHand(deviceType).GetFingerRig(finger).Distal); default: throw new ArgumentOutOfRangeException("phalange", phalange, null); } }
public Transform GetFingerTransform(device_type_t deviceType, ApolloHandData.FingerName finger, PhalangeType phalange) { HandRig hand = GetHand(deviceType); if (hand == null) { throw new ArgumentOutOfRangeException("phalange", phalange, null); } switch (phalange) { case PhalangeType.Proximal: return(hand.GetFingerRig(finger).Proximal); case PhalangeType.Intermedial: return(hand.GetFingerRig(finger).Intermedial); case PhalangeType.Distal: return(hand.GetFingerRig(finger).Distal); default: throw new ArgumentOutOfRangeException("phalange", phalange, null); } }