Is it possible to change C#’s built-in Vector3 struct to not use floating point Singles and instead use ints or bytes for performance reasons?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would need to make your own
Vector3struct based on integer or byte operations. This is entirely possible, as there is not a single “built-in”Vector3(there are multiple implementations of 3D Vectors in the framework).However, you will need to convert to the framework version if you plan to use it in framework API calls.