MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / convertToWorldSpace

Method convertToWorldSpace

Source/Node/Node.cpp:676–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676Vec2 Node::convertToWorldSpace(const Vec2& nodePoint) {
677 Vec3 point = Vec3::from(bx::mul(bx::Vec3{nodePoint.x, nodePoint.y, 0.0f}, getWorld().m));
678 return point.toVec2();
679}
680
681Vec2 Node::convertToWorldSpace(const Vec2& nodePoint, float& zInOut) {
682 auto pos = convertToWorldSpace3({nodePoint.x, nodePoint.y, zInOut});

Callers 8

touchForButtonFunction · 0.80
downMethod · 0.80
upMethod · 0.80
moveMethod · 0.80
itemForTouchMethod · 0.80
getKeyPointMethod · 0.80
updateViewMethod · 0.80

Calls 2

toVec2Method · 0.80
mulClass · 0.50

Tested by

no test coverage detected