mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update linalg.h
This commit is contained in:
parent
8d9761c6b5
commit
a7110a3f63
@ -581,13 +581,13 @@ struct PyMat3x3: Mat3x3{
|
|||||||
|
|
||||||
vm->bind_method<1>(type, "__eq__", [](VM* vm, ArgsView args){
|
vm->bind_method<1>(type, "__eq__", [](VM* vm, ArgsView args){
|
||||||
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
||||||
PyMat3x3& other = _CAST(PyMat3x3&, args[1]);
|
PyMat3x3& other = CAST(PyMat3x3&, args[1]);
|
||||||
return VAR(self == other);
|
return VAR(self == other);
|
||||||
});
|
});
|
||||||
|
|
||||||
vm->bind_method<1>(type, "__ne__", [](VM* vm, ArgsView args){
|
vm->bind_method<1>(type, "__ne__", [](VM* vm, ArgsView args){
|
||||||
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
||||||
PyMat3x3& other = _CAST(PyMat3x3&, args[1]);
|
PyMat3x3& other = CAST(PyMat3x3&, args[1]);
|
||||||
return VAR(self != other);
|
return VAR(self != other);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user