- CN: FluentKit:增加 Sin、Cos、SinAngle、CosAngle、Deg2Rad、Rad2Deg、ToVector3 API
- EN: FluentKit:add Sin、Cos、SinAngle、CosAngle、Deg2Rad、Rad2Deg、ToVector3 API
var cos = (90.0f * Mathf.Deg2Rad).Cos();
// cos is 0f
var sin = (90.0f * Mathf.Deg2Rad).Sin();
// sin is 1f
var cos = 90.0f.CosAngle();
// cos is 0f
var sin = 90.0f.SinAngle();
// sin is 1f
var radius = 90.0f.Deg2Rad();
// radius is 1.57f
var degree = 1.57f.Rad2Deg();
// degree is 90f
var vec3 = new Vector2(1,1).ToVector3();
// vec3 is (1,1,0)
vec3 = new Vector2(1,1).ToVector3(1);
// vec3 is (1,1,1)