mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Update documentation of dart:math.
Change-Id: Ice4a00c0dee37e88e4ee52ce76d7e7955e75cdb1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178820 Reviewed-by: Nate Bosch <nbosch@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
parent
1ebeb87a82
commit
434a97a3c1
2 changed files with 4 additions and 3 deletions
|
@ -5,9 +5,9 @@
|
|||
/// Mathematical constants and functions, plus a random number generator.
|
||||
///
|
||||
/// To use this library in your code:
|
||||
///
|
||||
/// import 'dart:math';
|
||||
///
|
||||
/// ```dart
|
||||
/// import 'dart:math';
|
||||
/// ```
|
||||
/// {@category Core}
|
||||
library dart.math;
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ class Point<T extends num> {
|
|||
final T x;
|
||||
final T y;
|
||||
|
||||
/// Creates a point with the provided [x] and [y] coordinates.
|
||||
const Point(T x, T y)
|
||||
: this.x = x,
|
||||
this.y = y;
|
||||
|
|
Loading…
Reference in a new issue