Thread: Inverting Axis
View Single Post
  #13   Spotlight this post!  
Unread 02-02-2015, 12:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Inverting Axis

Quote:
Originally Posted by notmattlythgoe View Post
It is however better practice to place the - in front of the variable instead of multiplying by -1.
I share your opinion on this matter1, but to move out of the realm of individual opinion: Is there a widely accepted code formatting standard that states this explicitly?

1for aesthetic reasons and to discourage the compiler from generating a floating-point multiply

Reply With Quote