//
// EditorUI::getSnapAngle from 0x3810e8 to 0x381158 (112 bytes)
//
// 3 xrefs:
// > EditorUI::transformObject @ 0x3858cc
// > EditorUI::transformObjectCall @ 0x39fec0
// > EditorUI::transformObjectCall @ 0x39ff86
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float EditorUI::getSnapAngle(EditorUI *a1, GameObject *a2, cocos2d::CCArray *a3)
{
unsigned int i; // r4
GameObject *v7; // r0
float v8; // s15
if ( a3 && cocos2d::CCArray::count(a3) )
{
for ( i = 0; i < cocos2d::CCArray::count(a3); ++i )
{
v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, i);
v8 = LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, v7);
if ( v8 != -1.0 )
return v8;
}
}
else if ( a2 )
{
return LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, a2);
}
return -1.0;
}