Skip to content

Commit

Permalink
docs: refactor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gz65555 committed Feb 21, 2023
1 parent 7e690c3 commit 090d4ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/math/src/Color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ export class Color implements IClone<Color>, ICopy<ColorLike, Color> {
}

/**
* json serialization.
* return {r: number, g: number, b: number, a: number}
* JSON serialization.
* @return A JSON representation of this color
*/
toJSON(): ColorLike {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/math/src/Quaternion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ export class Quaternion implements IClone<Quaternion>, ICopy<QuaternionLike, Qua

/**
* JSON JSON serialization.
* @returns A string representation of this vector
* @returns A JSON Object representation of this quaternion
*/
toJSON(): QuaternionLike {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/math/src/Vector2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export class Vector2 implements IClone<Vector2>, ICopy<Vector2Like, Vector2> {

/**
* JSON serialization.
* @returns A string representation of this vector
* @returns A JSON representation of this vector
*/
toJSON(): Vector2Like {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/math/src/Vector4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ export class Vector4 implements IClone<Vector4>, ICopy<Vector4Like, Vector4> {

/**
* JSON serialization.
* @returns A string representation of this vector
* @returns A JSON representation of this vector
*/
toJSON(): Vector4Like {
return {
Expand Down

0 comments on commit 090d4ab

Please sign in to comment.