ソースコード
使用例
var dir = Vector2.right;
var rot = dir.VectorToDeg();
var angle = 123f;
var vec = angle.DegToVector();
参考ツイート
whip those unity types into shape and add your own functionality via extension methods. for instance: converting angles to vectors and vice versa#UnityTips https://t.co/olLkLzUmwx pic.twitter.com/ov837Q4oU7
— Jesse Ringrose (@jesseringrose) 2018年11月20日