@ne555
I mean how to compute the angle between them |
This is the proper definition of a dot product :
u dot v = u
_{1}*v
_{1} + u
_{2}*v
_{2} + u
_{3}*v
_{3} = |u| |v| cos \theta
I am using this notation rather than u = (u
_{x}, u
_{y}, u
_{z})
Calculating the dot product by multiplying it's components is much easier than using the magnitudes.
@everyone
So it's pretty obvious that they can be badly abused.
Cubbi's example is particularly bad because it's straight assignment, and completely negates the ideas of deposit or withdrawal.
But it doesn't mean that they can't be written properly with checks & validation.
Maybe this topic fits into the same category as when a beginner routinely does
while(true){}
, because they can't bothered thinking of an end condition, but there are situations where an infinite loop done properly is a good thing.
Can anyone show how they think a Circle class should look? So that a DrawTangentLine calculation can be done with 2 circles? Without get functions? There is no need to show any calculations - I would just like to see how the data is accessed.
Does anyone have any thoughts on the GUI problem I mentioned above?
Any way it's late again - so I will see what anyone has to say tomorrow :)
Edit: Really slow typing again. I didn't see the last 2 posts while I was doing mine.
Cubbi - you are a champion - I will look at that info tmrw.