We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why is being called every time a Vector3 object is created? shouldn't this be placed outside of the class?
Vector3 class prototype in https://github.com/mrdoob/three.js/blob/dev/src/math/Vector3.js#L8
import * as MathUtils from './MathUtils.js'; import { Quaternion } from './Quaternion.js';
class Vector3 {
constructor( x = 0, y = 0, z = 0 ) { Vector3.prototype.isVector3 = true; this.x = x; this.y = y; this.z = z; }
no example
No response
r163
The text was updated successfully, but these errors were encountered:
This is related to tree-shaking. I suggest you study the related issues and PRs in this context. E.g. #24047, #24167, #24219.
Sorry, something went wrong.
Please use the forum if you have more questions about this topic.
No branches or pull requests
Description
why is being called every time a Vector3 object is created? shouldn't this be placed outside of the class?
Reproduction steps
Vector3 class prototype in https://github.com/mrdoob/three.js/blob/dev/src/math/Vector3.js#L8
Code
import * as MathUtils from './MathUtils.js';
import { Quaternion } from './Quaternion.js';
class Vector3 {
Live example
no example
Screenshots
No response
Version
r163
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: