Open Kefta opened 5 years ago
I will instantly reduce the code in my addons Thank you !
I will be then able to remove this section of the assembly library!
That is one dense library. Holy fuck
The scooby doo references are funny ;v
@thegrb93 I see you are man of culture as well ;)
I just happened across the lack of Angle:IsEqualTol
or a way of handling epsilon across vector-like functions with a math.IsClose
like #1991 suggests.
Issues with Angle
could be mitigated if Angle:Vector()
existed to compliment Vector:Angle()
, although that might not be the most optimal path compared to having parity.
Vector:
VectorRand
, this randomises the vector in place so it can save on object creationIsValid
!vec.x = vec.x + 1
as the latter induces two function calls per component operation (an index and a newindex).Angle:
I think Angle:Negate exists but it's a useless operation if all it does is negate each component.
Matrix:
There are a bunch of more VMatrix operations that would be useful for more efficient transformation Lua code but I think these are suitable for the meantime.
Let me know if you want use cases or benchmarks compared to Lua alternatives for any of these.