Skip to navigation

Aviator on the BBC Micro

3D geometry: SetPoint

Name: SetPoint [Show more] Type: Subroutine Category: 3D geometry Summary: Set a point's coordinates to the value (a, a, a)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FireGuns calls SetPoint

Arguments: X The ID of the point to set to the origin A The value for all three coordinates
.SetPoint STA xPointLo,X \ Set the point's x-coordinate to A STA xPointHi,X STA yPointLo,X \ Set the point's y-coordinate to A STA yPointHi,X STA zPointLo,X \ Set the point's z-coordinate to A STA zPointHi,X RTS \ Return from the subroutine