Skip to content

Commit

Permalink
docs: update jsdoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Apr 3, 2023
1 parent 6f8d76b commit fc1749d
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/math/EulerNotifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const DEG2RAD = math.DEG2RAD;
const RAD2DEG = math.RAD2DEG;

/**
* 欧拉角, 数据改变会发送事件
* 欧拉角,具有 onUpdate 回调
* @class
* @extends Euler
*/
Expand Down
2 changes: 1 addition & 1 deletion src/math/Matrix4.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ const Matrix4 = Class.create(/** @lends Matrix4.prototype */ {
* @param {Quaternion} q quaternion
* @param {Vector3} v position
* @param {Vector3} s scale
* @param {Vector3} p [pivot]
* @param {Vector3} [p] pivot
* @return {Matrix4} this
*/
compose(q, v, s, p) {
Expand Down
2 changes: 1 addition & 1 deletion src/math/Matrix4Notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const tempVector3 = new Vector3();
const tempVector32 = new Vector3();

/**
* 4x4 矩阵, 数据改变会发送事件
* 4x4 矩阵,具有 onUpdate 回调
* @class
* @extends {Matrix4}
*/
Expand Down
36 changes: 21 additions & 15 deletions src/math/QuaternionNotifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,34 @@ import Class from '../core/Class';
const tempMat3 = new Matrix3();

/**
* 四元数,具有 onUpdate 回调
* @class
*/
const QuaternionNotifier = Class.create(/** @lends Quaternion.prototype */ {
const QuaternionNotifier = Class.create(/** @lends QuaternionNotifier.prototype */ {
/**
* 类名
* @type {String}
* @default QuaternionNotifier
*/
* 类名
* @type {String}
* @default QuaternionNotifier
*/
className: 'QuaternionNotifier',
/**
* @type {Boolean}
* @default true
*/
* @type {Boolean}
* @default true
*/
isQuaternionNotifier: true,
/**
* Creates a new identity quat
* @constructs
* @param {Number} [x=0] X component
* @param {Number} [y=0] Y component
* @param {Number} [z=0] Z component
* @param {Number} [w=1] W component
*/
* @type {Boolean}
* @default true
*/
isQuaternion: true,
/**
* Creates a new identity quat
* @constructs
* @param {Number} [x=0] X component
* @param {Number} [y=0] Y component
* @param {Number} [z=0] Z component
* @param {Number} [w=1] W component
*/
constructor(x = 0, y = 0, z = 0, w = 1) {
/**
* 数据
Expand Down
2 changes: 1 addition & 1 deletion src/math/Vector3Notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Class from '../core/Class';
import Vector3 from './Vector3';

/**
* 三维向量, 数据改变会发送事件
* 三维向量,具有 onUpdate 回调
* @class
* @extends Vector3
*/
Expand Down
1 change: 1 addition & 0 deletions src/math/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { default as Matrix3 } from './Matrix3';
export { default as Matrix4 } from './Matrix4';
export { default as Matrix4Notifier } from './Matrix4Notifier';
export { default as Plane } from './Plane';
export { default as QuaternionNotifier } from './QuaternionNotifier';
export { default as Quaternion } from './Quaternion';
export { default as Ray } from './Ray';
export { default as Sphere } from './Sphere';
Expand Down

0 comments on commit fc1749d

Please sign in to comment.