lovr-docs icon indicating copy to clipboard operation
lovr-docs copied to clipboard

Missing documentation for operator overloads

Open nevyn opened this issue 5 years ago • 2 comments

I didn't even realize that __mul and friends were implemented until I did it by accident. Now I'm struggling to figure out which operators can be done between which datatypes. It would be nice will a full documentation set of operators, valid operands, and results. Maybe it could just be a big table under lovr.math.

nevyn avatar Aug 21 '20 12:08 nevyn

There is a Metamethods section here, but I like the idea of making a big table somewhere too

bjornbytes avatar Aug 21 '20 20:08 bjornbytes

oh wow, that page had a LOT of goodies I hadn't seen before! Maybe that stuff should be moved out to lovr.math? I don't really think of a mat or quat as a vector, though I understand the categorization.

or rename it "Vectors and Matrices", or link to Vectors from the pages for the various constructors, or something like that. Highlight it more somehow.

nevyn avatar Aug 23 '20 08:08 nevyn

Added more links

bjornbytes avatar Oct 22 '22 03:10 bjornbytes