File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
219219function testLerp ( ) {
You can’t perform that action at this time.
0 commit comments