Lines Matching defs:Geometry

31 WebInspector.Geometry = {};
36 WebInspector.Geometry._Eps = 1e-5;
44 WebInspector.Geometry.Vector = function(x, y, z)
51 WebInspector.Geometry.Vector.prototype = {
63 if (length <= WebInspector.Geometry._Eps)
78 WebInspector.Geometry.EulerAngles = function(alpha, beta, gamma)
87 * @return {!WebInspector.Geometry.EulerAngles}
89 WebInspector.Geometry.EulerAngles.fromRotationMatrix = function(rotationMatrix)
94 return new WebInspector.Geometry.EulerAngles(WebInspector.Geometry.radToDeg(alpha), WebInspector.Geometry.radToDeg(beta), WebInspector.Geometry.radToDeg(gamma));
98 * @param {!WebInspector.Geometry.Vector} u
99 * @param {!WebInspector.Geometry.Vector} v
102 WebInspector.Geometry.scalarProduct = function(u, v)
108 * @param {!WebInspector.Geometry.Vector} u
109 * @param {!WebInspector.Geometry.Vector} v
110 * @return {!WebInspector.Geometry.Vector}
112 WebInspector.Geometry.crossProduct = function(u, v)
117 return new WebInspector.Geometry.Vector(x, y, z);
121 * @param {!WebInspector.Geometry.Vector} u
122 * @param {!WebInspector.Geometry.Vector} v
123 * @return {!WebInspector.Geometry.Vector}
125 WebInspector.Geometry.subtract = function(u, v)
130 return new WebInspector.Geometry.Vector(x, y, z);
134 * @param {!WebInspector.Geometry.Vector} v
136 * @return {!WebInspector.Geometry.Vector}
138 WebInspector.Geometry.multiplyVectorByMatrixAndNormalize = function(v, m)
144 return new WebInspector.Geometry.Vector(x, y, z);
148 * @param {!WebInspector.Geometry.Vector} u
149 * @param {!WebInspector.Geometry.Vector} v
152 WebInspector.Geometry.calculateAngle = function(u, v)
156 if (uLength <= WebInspector.Geometry._Eps || vLength <= WebInspector.Geometry._Eps)
158 var cos = WebInspector.Geometry.scalarProduct(u, v) / uLength / vLength;
161 return WebInspector.Geometry.radToDeg(Math.acos(cos));
168 WebInspector.Geometry.radToDeg = function(rad)