public Vector3 GetHandleWorldPosition(ImageWarpHandleType a_handleType) { switch (a_handleType) { case ImageWarpHandleType.CornerTL: return(cornerWorldPositionTL); case ImageWarpHandleType.CornerTR: return(cornerWorldPositionTR); case ImageWarpHandleType.CornerBR: return(cornerWorldPositionBR); case ImageWarpHandleType.CornerBL: return(cornerWorldPositionBL); case ImageWarpHandleType.TopBezierHandleA: return(topBezierWorldPositionHandleA); case ImageWarpHandleType.TopBezierHandleB: return(topBezierWorldPositionHandleB); case ImageWarpHandleType.RightBezierHandleA: return(rightBezierWorldPositionHandleA); case ImageWarpHandleType.RightBezierHandleB: return(rightBezierWorldPositionHandleB); case ImageWarpHandleType.BottomBezierHandleA: return(bottomBezierWorldPositionHandleA); case ImageWarpHandleType.BottomBezierHandleB: return(bottomBezierWorldPositionHandleB); case ImageWarpHandleType.LeftBezierHandleA: return(leftBezierWorldPositionHandleA); case ImageWarpHandleType.LeftBezierHandleB: return(leftBezierWorldPositionHandleB); } return(Vector3.zero); }
public void SetHandleLocalPosition(ImageWarpHandleType a_handleType, Vector3 a_localPosition) { switch (a_handleType) { case ImageWarpHandleType.CornerTL: SetCornerLocalPositionTL(a_localPosition); break; case ImageWarpHandleType.CornerTR: SetCornerLocalPositionTR(a_localPosition); break; case ImageWarpHandleType.CornerBR: SetCornerLocalPositionBR(a_localPosition); break; case ImageWarpHandleType.CornerBL: SetCornerLocalPositionBL(a_localPosition); break; case ImageWarpHandleType.TopBezierHandleA: SetTopBezierLocalPositionHandleA(a_localPosition); break; case ImageWarpHandleType.TopBezierHandleB: SetTopBezierLocalPositionHandleB(a_localPosition); break; case ImageWarpHandleType.RightBezierHandleA: SetRightBezierLocalPositionHandleA(a_localPosition); break; case ImageWarpHandleType.RightBezierHandleB: SetRightBezierLocalPositionHandleB(a_localPosition); break; case ImageWarpHandleType.BottomBezierHandleA: SetBottomBezierLocalPositionHandleA(a_localPosition); break; case ImageWarpHandleType.BottomBezierHandleB: SetBottomBezierLocalPositionHandleB(a_localPosition); break; case ImageWarpHandleType.LeftBezierHandleA: SetLeftBezierLocalPositionHandleA(a_localPosition); break; case ImageWarpHandleType.LeftBezierHandleB: SetLeftBezierLocalPositionHandleB(a_localPosition); break; } }