import 'dart:math';
-
常量(const double)
e ln2 ln10 log2e log10e pi sqrt1_2 sqrt2
-
函数
acos(num x) → double
asin(num x) → double
atan(num x) → double
atan2(num a, num b) → double
cos(num radians) → double
exp(num x) → double
log(num x) → double
max<T extends num>(T a, T b) → T
min<T extends num>(T a, T b) → T
pow(num x, num exponent) → num
sin(num radians) → double
sqrt(num x) → double
tan(num radians) → double
-
类
MutableRectangle<T extends num>具有可变属性的二维轴对齐矩形的类
- 构造函数
MutableRectangle(T left, T top, T width, T height)
MutableRectangle.fromPoints(Point<T> a, Point<T> b) - 属性
height ↔ Tread / write
left ↔ Tread / write
top ↔ Tread / write
width ↔ Tread / write - 方法
boundingBox(Rectangle < T > other) → Rectangle < T >返回一个完全包含this和的新矩形other。
containsPoint(Point<num> another) → bool测试another是在内部还是在边缘this。
containsRectangle(Rectangle < num > another) → bool测试是否this完全包含another。
intersection(Rectangle<T> other) → Rectangle<T>计算的交点this和other。
intersects(Rectangle<num> other) → bool如果this相交则返回true other。 - 运算符
==
Rectangle<T extends num>表示属性不可变的二维矩形的类
- 属性
top → Tfinal
right → Tread-only, inherited
left → Tfinal
width → Tfinal
height → Tfinal
bottom → Tead-only, inherited
bottomLeft → Point<T>read-only, inherited
bottomRight → Point<T>read-only, inherited
topLeft → Point<T>read-only, inherited
topRight → Point<T>read-only, inherited - 方法
boundingBox(Rectangle < T > other) → Rectangle < T >返回一个完全包含this和的新矩形other。
containsPoint(Point<num> another) → bool测试another是在内部还是在边缘this。
containsRectangle(Rectangle < num > another) → bool测试是否this完全包含another。
intersection(Rectangle<T> other) → Rectangle<T>计算的交点this和other。
intersects(Rectangle<num> other) → bool如果this相交则返回true other。 - 运算符
==
Point<T extends num>二维位置的实用程序类
- 构造函数
Point(T x, T y) - 属性
magnitude → doubleread-only
x → Tfinal
y → Tfinal - 方法
distanceTo(Point<T> other) → double之间的距离
squaredDistanceTo(Point<T> other) → T平方距离 - 运算符
+ - * ==
Random
- 构造函数
Random([int seed ])
Random.secure() - 方法
nextBool() → bool
nextDouble() → double
nextInt(int max) → int









网友评论