@@ -1671,6 +1671,7 @@ <h4>The <code>assetmesh</code> element</h4>
1671
1671
< dl class ='element '>
1672
1672
< dt > Categories:</ dt >
1673
1673
< dd > < a href ="#data-elements "> Data element</ a > </ dd >
1674
+ < dd > < a href ="#transformable-elements "> Transformable element</ a > </ dd >
1674
1675
</ dl >
1675
1676
1676
1677
< 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>
3432
3433
< h3 > Quat</ h3 >
3433
3434
< dl class ='element '>
3434
3435
</ 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 >
3436
3438
3437
3439
< dl title ='interface Quat ' class ='idl '>
3438
3440
< dt > attribute Float32Array data</ dt >
@@ -3501,15 +3503,15 @@ <h3>Quat</h3>
3501
3503
< dt > Quat scale(float scale)</ dt >
3502
3504
< dd > Returns the scaled quaternion as a new Quat. This is identical to < a > Vec4</ a > .scale.</ dd >
3503
3505
< 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 >
3505
3507
< 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
3507
3509
space defined by these vectors and the standard space.
3508
3510
</ dd >
3509
3511
< 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 >
3511
3513
< 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 >
3513
3515
< dt > Quat slerp()</ dt >
3514
3516
< dd > Returns a spherical linear interpolation between the two quaternions as a new Quat.
3515
3517
< dl class ='parameters '>
@@ -3566,7 +3568,7 @@ <h3>Mat2</h3>
3566
3568
< dd > Returns the multiplication of this matrix with the other as a new Mat2.</ dd >
3567
3569
< dt > Mat2 rotate(float angleInRadians)</ dt >
3568
3570
< 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 >
3570
3572
< dd > Returns the scaled matrix as a new Mat2.</ dd >
3571
3573
< dt > Mat2 transpose()</ dt >
3572
3574
< dd > Returns the transpose of this matrix as a new Mat2.</ dd >
@@ -3631,7 +3633,7 @@ <h3>Mat3</h3>
3631
3633
< dd > Returns the multiplication of this matrix with the other as a new Mat3.</ dd >
3632
3634
< dt > Mat3 rotate(float angleInRadians)</ dt >
3633
3635
< 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 >
3635
3637
< dd > Returns the scaled matrix as a new Mat3.</ dd >
3636
3638
< dt > Mat3 translate(Vec3 translation)</ dt >
3637
3639
< dd > Returns the translated matrix as a new Mat3.</ dd >
@@ -3721,7 +3723,7 @@ <h3>Mat4</h3>
3721
3723
< dd > Returns the rotation of this matrix by the given angle around the Y axis as a new Mat4.</ dd >
3722
3724
< dt > Mat4 rotateZ(float angleInRadians)</ dt >
3723
3725
< 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 >
3725
3727
< dd > Returns the scaled matrix as a new Mat4.</ dd >
3726
3728
< dt > Mat4 translate(Vec3 translation)</ dt >
3727
3729
< dd > Returns the translated matrix as a new Mat4.</ dd >
0 commit comments