Jump to content

Need Help in understanding vec3 Vec3d vec2i etc. please.


Recommended Posts

They don't really do anything themselves, they're just vectors.that store 2 or more coordinates and provide methods for various vector operations (e.g. addition, subtraction, normalisation, dot and cross product).

 

The number in the name is how many coordinates the vector stores (i.e. the number of dimensions). The letter after the number is the numerical data type used by the vector, e.g. i for int, d for double, f for float.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Just now, Choonster said:

They don't really do anything themselves, they're just vectors.that store 2 or more coordinates and provide methods for various vector operations (e.g. addition, subtraction, normalisation, dot and cross product).

 

The number in the name is how many coordinates the vector stores (i.e. the number of dimensions). The letter after the number is the numerical data type used by the vector, e.g. i for int, d for double, f for float.

Another question, why was vec3 removed in 1.10.2?

Link to comment
Share on other sites

2 minutes ago, TheRPGAdventurer said:

Another question, why was vec3 removed in 1.10.2?

 

It was renamed to Vec3d in 1.9 for consistency with the other vector class names.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Just now, Choonster said:

 

It was renamed to Vec3d in 1.9 for consistency with the other vector class names.

Another question, what is the best substitute from create vector helper, you see, I am helping the Dragon Mounts Author fix the player's position while riding the dragon, but in 1.10 they removed UpdateRiderPostion method in the Entity.class, the author and many of his helpers struggle to fix the bug. ;) 

Link to comment
Share on other sites

9 minutes ago, TheRPGAdventurer said:

Another question, what is the best substitute from create vector helper,

 

Vec3.createVectorHelper was removed in 1.8 when the Vec3 constructor was made public. Just use the constructor directly.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.