Think of it as a car, the center of rotation is the center of the car, the diameter is the total width of the car, the antenea on the left-hand side is the unknown point, and the antenea to the object distance is unknown. But you do know how far the antenea is from the center of the car AND the distance it is from the perpandicularly of the invisible diameter.
(Look at the attachment)
So, given x,y,a and thereby the three black points, you want to calculate the length of the segment indicated with a question mark. This is simply the diagonal of a triangle, and you can calculate it using Pythagoras's Theorem:
?2 = x2 + (y-b)2
One: Figure out the distance between the point and 0,0.
Two: Figure out the angle.
Three: The new point is at angle+rotation (at the calculated distance away from 0,0)
Don't pay attention to this signature, it's contradictory.
well you need a calculator so you can do the trigs, other than that its simple linear algebra
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
nah you don't need that knowing r' and h in the figure
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
It's for a game. Can't do a matrix, don't know how to do a matrix, and don't want to do a matrix. Put it at that.
I'm trying to do a 2D engine in visual basic, and please do not recomend using it from a 3rd-party. I'm just programming what I need and not anything else.
But if all else fails, I might consider using DaBooda 2D.