Skip to content

Commit feb2a18

Browse files
authored
deprecate the SimplexNoise classes (#271)
1 parent 09ba4fa commit feb2a18

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- `operator ==` overrides no longer take nullable arguments. This is only
44
visible for classes that implement the interfaces defined in this package
55
which no longer need to also widen the argument type.
6+
- Deprecate `SimplexNoise`; see https:github.com/google/vector_math.dart/issues/270
7+
for more information.
68

79
## 2.1.2
810

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,3 @@ To automatically generate the latest version of ```vector_math_64```:
163163
```
164164
~/src/vector_math/> dart tool/generate_vector_math_64.dart
165165
```
166-

lib/src/vector_math/third_party/noise.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ part of vector_math;
2626
* found at: http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java
2727
*/
2828

29+
@Deprecated('This API will be removed '
30+
'(see https:github.com/google/vector_math.dart/issues/270)')
2931
class SimplexNoise {
3032
static final List<List<double>> _grad3 = <List<double>>[
3133
<double>[1.0, 1.0, 0.0],

lib/src/vector_math_64/third_party/noise.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ part of vector_math_64;
2525
* This is based on the implementation of Simplex Noise by Stefan Gustavson
2626
* found at: http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java
2727
*/
28-
28+
@Deprecated('This API will be removed '
29+
'(see https:github.com/google/vector_math.dart/issues/270)')
2930
class SimplexNoise {
3031
static final List<List<double>> _grad3 = <List<double>>[
3132
<double>[1.0, 1.0, 0.0],

lib/vector_math.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
/// [Quad], [Ray], [Sphere] and [Triangle]).
1212
///
1313
/// In addition some utilities are available as color operations (See [Colors]
14-
/// class), noise generators ([SimplexNoise]) and common OpenGL operations
15-
/// (like [makeViewMatrix], [makePerspectiveMatrix], or [pickRay]).
14+
/// class) and common OpenGL operations (like [makeViewMatrix],
15+
/// [makePerspectiveMatrix], or [pickRay]).
1616
library vector_math;
1717

1818
import 'dart:math' as math;

lib/vector_math_64.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
/// [Quad], [Ray], [Sphere] and [Triangle]).
1212
///
1313
/// In addition some utilities are available as color operations (See [Colors]
14-
/// class), noise generators ([SimplexNoise]) and common OpenGL operations
15-
/// (like [makeViewMatrix], [makePerspectiveMatrix], or [pickRay]).
14+
/// class) and common OpenGL operations (like [makeViewMatrix],
15+
/// [makePerspectiveMatrix], or [pickRay]).
1616
library vector_math_64;
1717

1818
import 'dart:math' as math;

test/noise_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// All rights reserved. Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use_from_same_package
6+
57
import 'package:test/test.dart';
68

79
import 'package:vector_math/vector_math.dart';

0 commit comments

Comments
 (0)