Skip to content

Commit d07e083

Browse files
ducklordjoeltine
authored andcommitted
Changed det to full name.
1 parent 14fabea commit d07e083

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

closure/goog/math/vec2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ goog.math.Vec2.dot = function(a, b) {
275275
* @param {!goog.math.Vec2} b The second vector.
276276
* @return {number} The determinant of the two vectors.
277277
*/
278-
goog.math.Vec2.det = function(a, b) {
278+
goog.math.Vec2.determinant = function(a, b) {
279279
return a.x * b.y - a.y * b.x;
280280
};
281281

closure/goog/math/vec2_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,18 @@ function testDot() {
202202
assertEquals(-35, goog.math.Vec2.dot(c, d));
203203
}
204204

205-
function testDet() {
205+
function testDeterminant() {
206206
var a = new goog.math.Vec2(0, 5);
207207
var b = new goog.math.Vec2(0, 10);
208-
assertEquals(0, goog.math.Vec2.det(a, b));
208+
assertEquals(0, goog.math.Vec2.determinant(a, b));
209209

210210
var c = new goog.math.Vec2(0, 5);
211211
var d = new goog.math.Vec2(10, 0);
212-
assertEquals(-50, goog.math.Vec2.det(c, d));
212+
assertEquals(-50, goog.math.Vec2.determinant(c, d));
213213

214214
var e = new goog.math.Vec2(-5, -5);
215215
var f = new goog.math.Vec2(0, 7);
216-
assertEquals(-35, goog.math.Vec2.det(e, f));
216+
assertEquals(-35, goog.math.Vec2.determinant(e, f));
217217
}
218218

219219
function testLerp() {

0 commit comments

Comments
 (0)