数学和数字

GameMaker Studio 2 contains a large number functions to deal with different areas of mathematics, numbers of all types and the date and time. Most of these functions can be found in the sections listed below:

  1. 日期和时间
  2. 实数函数
  3. 矢量函数
  4. 矩阵函数

There are a couple of built in constants that also can be evaluated as real numbers (although you should always check for the constant rather than the value):

常量
true 1
false 0 (although any value less than 1 will also evaluate as false)
pi 3.141592653589793280etc... (the exact value will depend on various factors like platform being built for)


上一页:GameMaker Studio 2 语言参考
下一页: Physics
© Copyright YoYo Games Ltd. 2018 All Rights Reserved