@@ -1671,6 +1671,7 @@ <h4>The <code>assetmesh</code> element</h4>
16711671 < dl class ='element '>
16721672 < dt > Categories:</ dt >
16731673 < dd > < a href ="#data-elements "> Data element</ a > </ dd >
1674+ < dd > < a href ="#transformable-elements "> Transformable element</ a > </ dd >
16741675 </ dl >
16751676
16761677 < p > An < dfn > assetmesh element</ dfn > represents a single drawable mesh in the asset and works similar to the
@@ -3432,7 +3433,8 @@ <h3>AxisAngle</h3>
34323433 < h3 > Quat</ h3 >
34333434 < dl class ='element '>
34343435 </ dl >
3435- < p > Quat represents a rotation as a quaternion of the form [x, y, z, w]. </ p >
3436+ < p > Quat represents a rotation as a quaternion of the form [x, y, z, w]. The provided functions and accessors
3437+ do not automatically normalize the quaternion unless otherwise stated.</ p >
34363438
34373439 < dl title ='interface Quat ' class ='idl '>
34383440 < dt > attribute Float32Array data</ dt >
@@ -3501,15 +3503,15 @@ <h3>Quat</h3>
35013503 < dt > Quat scale(float scale)</ dt >
35023504 < dd > Returns the scaled quaternion as a new Quat. This is identical to < a > Vec4</ a > .scale.</ dd >
35033505 < dt > static Quat fromAxisAngle(AxisAngle a)</ dt >
3504- < dd > Generates a quaternion representation of the given AxisAngle.</ dd >
3506+ < dd > Generates a normalized quaternion representation of the given AxisAngle.</ dd >
35053507 < dt > static Quat fromBasis(Vec3 x, Vec3 y, Vec3 z)</ dt >
3506- < dd > Generates a quaternion from the given basis vectors, defined as the rotation between the coordinate
3508+ < dd > Generates a normalized quaternion from the given basis vectors, defined as the rotation between the coordinate
35073509 space defined by these vectors and the standard space.
35083510 </ dd >
35093511 < dt > static Quat fromMat3(Mat3 mat)</ dt >
3510- < dd > Generates a quaternion from the given rotation matrix.</ dd >
3512+ < dd > Generates a normalized quaternion from the given rotation matrix.</ dd >
35113513 < dt > static Quat fromRotationTo(Vec3 from, Vec3 to)</ dt >
3512- < dd > Generates a quaternion representing the shortest rotation from one vector to another.</ dd >
3514+ < dd > Generates a normalized quaternion representing the shortest rotation from one vector to another.</ dd >
35133515 < dt > Quat slerp()</ dt >
35143516 < dd > Returns a spherical linear interpolation between the two quaternions as a new Quat.
35153517 < dl class ='parameters '>
@@ -3566,7 +3568,7 @@ <h3>Mat2</h3>
35663568 < dd > Returns the multiplication of this matrix with the other as a new Mat2.</ dd >
35673569 < dt > Mat2 rotate(float angleInRadians)</ dt >
35683570 < dd > Returns the rotation of this matrix by the given angle in radians as a new Mat2.</ dd >
3569- < dt > Mat2 scale(float scale)</ dt >
3571+ < dt > Mat2 scale(Vec2 scale)</ dt >
35703572 < dd > Returns the scaled matrix as a new Mat2.</ dd >
35713573 < dt > Mat2 transpose()</ dt >
35723574 < dd > Returns the transpose of this matrix as a new Mat2.</ dd >
@@ -3631,7 +3633,7 @@ <h3>Mat3</h3>
36313633 < dd > Returns the multiplication of this matrix with the other as a new Mat3.</ dd >
36323634 < dt > Mat3 rotate(float angleInRadians)</ dt >
36333635 < dd > Returns the rotation of this matrix by the given angle in radians as a new Mat3.</ dd >
3634- < dt > Mat3 scale(float scale)</ dt >
3636+ < dt > Mat3 scale(Vec3 scale)</ dt >
36353637 < dd > Returns the scaled matrix as a new Mat3.</ dd >
36363638 < dt > Mat3 translate(Vec3 translation)</ dt >
36373639 < dd > Returns the translated matrix as a new Mat3.</ dd >
@@ -3721,7 +3723,7 @@ <h3>Mat4</h3>
37213723 < dd > Returns the rotation of this matrix by the given angle around the Y axis as a new Mat4.</ dd >
37223724 < dt > Mat4 rotateZ(float angleInRadians)</ dt >
37233725 < dd > Returns the rotation of this matrix by the given angle around the Z axis as a new Mat4.</ dd >
3724- < dt > Mat4 scale(float scale)</ dt >
3726+ < dt > Mat4 scale(Vec3 scale)</ dt >
37253727 < dd > Returns the scaled matrix as a new Mat4.</ dd >
37263728 < dt > Mat4 translate(Vec3 translation)</ dt >
37273729 < dd > Returns the translated matrix as a new Mat4.</ dd >
0 commit comments