Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sdk/lib/math/rectangle.dart

Issue 2911903002: Use relative URIs for core library part-of statements. (Closed)
Patch Set: Fix warnings in web-sockets tests, typo in fasta. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/math/random.dart ('k') | sdk/lib/vmservice/asset.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 part of dart.math; 4
5 part of "math.dart";
5 6
6 /** 7 /**
7 * A base class for representing two-dimensional axis-aligned rectangles. 8 * A base class for representing two-dimensional axis-aligned rectangles.
8 * 9 *
9 * This rectangle uses a left-handed Cartesian coordinate system, with x 10 * This rectangle uses a left-handed Cartesian coordinate system, with x
10 * directed to the right and y directed down, as per the convention in 2D 11 * directed to the right and y directed down, as per the convention in 2D
11 * computer graphics. 12 * computer graphics.
12 * 13 *
13 * See also: 14 * See also:
14 * [W3C Coordinate Systems Specification](http://www.w3.org/TR/SVG/coords.htm l#InitialCoordinateSystem). 15 * [W3C Coordinate Systems Specification](http://www.w3.org/TR/SVG/coords.htm l#InitialCoordinateSystem).
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 266
266 /** 267 /**
267 * Converts a negative [int] or [double] to a zero-value of the same type. 268 * Converts a negative [int] or [double] to a zero-value of the same type.
268 * 269 *
269 * Returns `0` if value is int, `0.0` if value is double. 270 * Returns `0` if value is int, `0.0` if value is double.
270 */ 271 */
271 T _clampToZero<T extends num>(T value) { 272 T _clampToZero<T extends num>(T value) {
272 assert(value < 0); 273 assert(value < 0);
273 return -value * 0; 274 return -value * 0;
274 } 275 }
OLDNEW
« no previous file with comments | « sdk/lib/math/random.dart ('k') | sdk/lib/vmservice/asset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698