mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
fix vec2.dot
This commit is contained in:
parent
a810973f65
commit
ccbf3a1fc7
@ -82,7 +82,7 @@ struct PyVec2: Vec2 {
|
|||||||
return VAR_T(PyVec2, self + other_);
|
return VAR_T(PyVec2, self + other_);
|
||||||
});
|
});
|
||||||
|
|
||||||
vm->bind(type, "dot(other: vec2) -> float", [](VM* vm, ArgsView args){
|
vm->bind(type, "dot(self, other: vec2) -> float", [](VM* vm, ArgsView args){
|
||||||
PyVec2& self = _CAST(PyVec2&, args[0]);
|
PyVec2& self = _CAST(PyVec2&, args[0]);
|
||||||
PyVec2& other = CAST(PyVec2&, args[1]);
|
PyVec2& other = CAST(PyVec2&, args[1]);
|
||||||
return VAR(self.dot(other));
|
return VAR(self.dot(other));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user