Ang (wall): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
New struct member added with commit 621fb47a
 
(No difference)

Latest revision as of 01:22, 7 January 2024

This is a read-only pseudo struct member.

It does not actually exist as a true member of the wall struct, but is instead calculated on-the-fly when accessed, based on the x/y coordinates of the two wall points.

The calculation is done through the following formula:

(getangle(wall[wall[wallNum].point2].x - wall[wallNum].x, wall[wall[wallNum].point2].y - wall[wallNum].y) + 512) & 2047