Skip to content

Fix Matrix3/4 makeTranslation types#488

Merged
Methuselah96 merged 1 commit intothree-types:devfrom
puxiao:dev
Jun 30, 2023
Merged

Fix Matrix3/4 makeTranslation types#488
Methuselah96 merged 1 commit intothree-types:devfrom
puxiao:dev

Conversation

@puxiao
Copy link
Contributor

@puxiao puxiao commented Jun 30, 2023

https://threejs.org/docs/index.html#api/en/math/Matrix4.makeTranslation

makeTranslation( x, y, z ) {

		if ( x.isVector3 ) {

			this.set(
				1, 0, 0, x.x,
				0, 1, 0, x.y,
				0, 0, 1, x.z,
				0, 0, 0, 1

			);

		} else { 
			...
		}
}

Copy link
Contributor

@Methuselah96 Methuselah96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Methuselah96 Methuselah96 merged commit 34f5d4e into three-types:dev Jun 30, 2023
@Methuselah96 Methuselah96 mentioned this pull request Jun 30, 2023
45 tasks
@puxiao puxiao deleted the dev branch June 30, 2023 01:27
MykhailoStrelnykov pushed a commit to Chronos-Samples/three-ts-types that referenced this pull request Dec 22, 2025
Co-authored-by: puxiao <78657141@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants