Skip to Content
The Alchemy Project

src/scene/shared/position_flat_distance.c

Included by airs_rock.c, airs_rock_inside.c, jupiter_lighthouse_aerie.c, jupiter_lighthouse_aerie_beacon.c, jupiter_lighthouse_basement.c, jupiter_lighthouse_central_room.c, jupiter_lighthouse_cracked_floor.c, jupiter_lighthouse_entrance.c, jupiter_lighthouse_ground_floor.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_locked_doors.c, jupiter_lighthouse_right_tower_lower.c, jupiter_lighthouse_right_tower_upper.c, jupiter_lighthouse_terraces.c, jupiter_lighthouse_upper_hall.c, magma_rock.c, magma_rock_inside.c, mars_lighthouse_towers.c and sea_of_time.c.

Functions

NameDescription
Sint32scPosFlatDistance (FIXED *a, FIXED *b)The distance in whole pixels between two positions across the ground, in x and z, each given by its x and read on through the y and z that follow it.

Functions in detail

scPosFlatDistance

Sint32 scPosFlatDistance(FIXED *a, FIXED *b)

The distance in whole pixels between two positions across the ground, in x and z, each given by its x and read on through the y and z that follow it. UB: an actor's x, y and z are separate members, read here as an array.

References Sint32 and sySquartIWRAM().

Referenced by scAirsRockInsideMovePooledWhirlwind(), scAirsRockInsideMoveWhirlwind(), scAirsRockInsideUpdateVentPuff(), scAirsRockMoveWhirlwind(), scMagmaRockFireFromStatue(), scMagmaRockInsideFireFromStatue(), scMagmaRockMoveFireball(), scSeaOfTimeCircleSwirl(), scSeaOfTimeRideCurrent() and scWhirlwindUpdate().

Definition at line 4 of file position_flat_distance.c.