RotateVector for Vector access
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
RotateVector for Vector access
This could be very useful for UI purposes. Or allowing vec2 and vec3 the Rotate() function with an angle for a parameter.
Last edited by Major Cooke on Fri Sep 01, 2017 9:54 am, edited 1 time in total.
- nazakomu
- Posts: 131
- Joined: Wed Nov 30, 2016 12:51 am
- Graphics Processor: nVidia with Vulkan support
Re: clearscope for RotateVector
I second this.
Re: clearscope for RotateVector
Is it so performance critical that you can't write own function? It's trivial to convert TVector2<>::Rotated() to ZScript.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: clearscope for RotateVector
Actually, the bigger problem here is that these functions are still in Actor. They really should be part of the actual vector structs instead and then deprecated. But don't expect me to relax the conditions on the Actor variants.
- Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: RotateVector for Vector access
Alright, yeah, too much disassembly for me to handle.