Guest User

Untitled

a guest
Jun 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. inline operator float* () {
  2. return (float*)this;
  3. }
  4.  
  5. inline operator const float* () const {
  6. return (const float*)this;
  7. }
  8.  
  9. // Cast operator, for []
  10. inline operator vec4* () {
  11. return (vec4*)this;
  12. }
  13.  
  14. // Const cast operator, for const []
  15. inline operator const vec4* () const {
  16. return (const vec4*)this;
  17. }
Add Comment
Please, Sign In to add comment