-
Notifications
You must be signed in to change notification settings - Fork 53
Danmakufu Function Mapping
James Liu edited this page Mar 18, 2015
·
12 revisions
#Math Functions
Danmakufu Function | DanmakuUnity2D Function | Notes |
---|---|---|
add | + | Standard C# operator * |
subtract | - | Standard C# operator * |
multiply | * | Standard C# operator * |
divide | / | Standard C# operator * |
remainder | % | Standard C# operator |
power | Mathf.Pow | |
min | Mathf.Min | |
max | Mathf.Max | |
log | Mathf.Log | |
log10 | Mathf.Log10 | |
cos | Mathf.Cos | |
sin | Mathf.Sin | |
tan | Math.Tan | |
acos | Mathf.Acos | |
asin | Mathf.Asin | |
atan | Mathf.Atan | |
atan2 | Mathf.Atan2 | |
rand | Random.Range | |
round | Mathf.Round, Mathf.RoundToInt | |
truncate | Mathf.FloorToInt | |
ceil | Mathf.Ceil, Mathf.CeilToInt | |
floor | Mathf.Floor | |
absolute | Mathf.Abs | |
modc | No Equivalent |