ScratchData LogoScratchData
Back to raucket's profile

atan2 - Compact Version

RAraucket•Created December 18, 2015
atan2 - Compact Version
38
27
657 views
View on Scratch

Instructions

atan2 - Compact Version Vanilla Version: https://scratch.mit.edu/projects/92135084/

Description

This is the compact version of my latest atan2 - I'm using a an old trick to avoid using any if-statements, but I don't know if this makes it faster... It certainly isn't easy to read! ;-) Update 2015-DEC-21: Added check for avoiding division by zero, even though Scratch seems to support this by returning +/-Infinity. This makes it possible to only do addition, when putting together the Cartesian angle. Update 2015-DEC-20: Thanks to @WO997 for giving me the chance to learn something new and revise my code. Update 2015-DEC-19: Inspired by @chooper100 to compress the code even more!

Project Details

Project ID92138129
CreatedDecember 18, 2015
Last ModifiedDecember 22, 2015
SharedDecember 18, 2015
Visibilityvisible
CommentsAllowed