Lines Matching defs:length
13 for (var i=0; i < arguments.length-1; i+=2) {
32 // order. Its width is passed as `width`. `v` is an array with length < (m.length/width).
43 for (var i=0; i<v.length; i++) {
82 if (IsDebug && (ptArr.length % 2)) {
83 throw 'mapPoints requires an even length arr';
85 for (var i = 0; i < ptArr.length; i+=2) {
107 if (IsDebug && (m1.length !== m2.length)) {
108 throw 'Undefined for matrices of different sizes. m1.length='+m1.length+', m2.length='+m2.length;
110 if (IsDebug && (size*size !== m1.length)) {
114 var result = Array(m1.length);
131 if (IsDebug && (listOfMatrices.length < 2)) {
136 while (next < listOfMatrices.length) {
185 // works on vectors of any length.
188 if (IsDebug && (a.length !== b.length)) {
189 throw 'Cannot perform dot product on arrays of different length ('+a.length+' vs '+b.length+')';
196 CanvasKit.Vector.length = function(v) {
209 return CanvasKit.Vector.length(CanvasKit.Vector.sub(a, b));
212 return CanvasKit.Vector.mulScalar(v, 1/CanvasKit.Vector.length(v));
215 if (IsDebug && (a.length !== 3 || a.length !== 3)) {
216 throw 'Cross product is only defined for 3-dimensional vectors (a.length='+a.length+', b.length='+b.length+')';
234 // Anything named vec below is an array of length 3 representing a vector/point in 3D space.
459 // deal with a Float32Array of length 20 than to try to expose the SkColorMatrix object.