|
More things[^] He deleted all his rude posts!
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
I never saw Mark so upset
Now I'm curious about deleted messages content.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
No, Mark was not upset. That is the dialogues from Monty Python holy grail scene 8.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
OK but there should be a reason to quote it, shouldn't it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
When I asked him not to low-vote all the posts, he said that we must look at things the "Monty Python" way. So, Mark replied with a Monty python quote.
He asked me if I earn money with votes and said that I am partial towards high votes. Later on, ironically he started squealing and crying after someone voted his article down. Talk about the people who won't follow their own suggestions. 
|
|
|
|
|
I think he is a CodeGuru 's infiltrator whoose purpose is defaming CodeProject MVP s' honor
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Does your triangle look like:
A
|\
| \
| \
| \
| \
| \
| \
C -------- B
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Well, I suppose you may freely rotate it and (as long as you keep the straight angle) make it isosceles.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
My question was actually leading up to something else. If he knows the x,y coordinates of A and B, and he knows the distance of AC and BC, then he should be able to add/subtract from A and B to get C.
I've never studied trigonometry so I may be missing something obvious.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I was just kidding and your point is good. IMHO the problem with is question is the redundance of inputs (excluding the 'stolen membership hypothesis').
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes exactly. I've got recently extension as we can have either A,B coords and CBA,CAB angles to find out C coords, or we know B coord only plus AB,BC lengths to find out A coords.
I'm ashamed I always exceled in geometry but that was dozen of years ago in school.
chesnokov
|
|
|
|
|
... but do not forget arbitrary rotation of the triangle.
chesnokov
|
|
|
|
|
This problem can be seen as finding intersection of two circle.
also this problem will have two solutions.
How to imagine it as problem of intersection of two circles.
Circle 1 center point be A with radius AC and circle 2 as of center B and radius BC.
Note: ACB angle 90 degree information is redundant and is not required
check out the below link to find the solution of intersection points of two circles and well as the c code to do it. The c code can be directly used for your purpose.
http://ozviz.wasp.uwa.edu.au/~pbourke/geometry/2circle/[^]
You could have found a faster solution in mathematics and algorithm discussion section.
|
|
|
|
|
Cosmic Egg wrote: Note: ACB angle 90 degree information is redundant and is not required
Also distance between A and B is redundant (we've their coords).
Generally speaking, two pieces of info are redundant.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I knew ~pbourke site long times ago it was great. The solution is very near and seems obvious.
Mathematics thread seems not so populated, also I would not met there me friends
chesnokov
|
|
|
|
|
Does anyone know the alg/code tutorial to skew the image like in GDI+ DrawImage but using 4 destination points to take into account 3D depth. The skewed image needs to be put onto simple GDI+ bitmap, so if OpenGL does this trick with texture mapping and drawing it to MFC GDI+ bitmap?
1
|\
| \
| \2
| |
| /4
| /
|/
3
chesnokov
|
|
|
|
|
I have been searching for this for long time
finally i got this Anti aliased transform[^]
But it is very slow.. Let me know if you get anything else.
Regards,
Sandip.
|
|
|
|
|
How much slow it is in milliseconds? Say to draw 80x60 skewed that way image onto 640x480 bitmap?
chesnokov
|
|
|
|
|
Dont remember now exactly..
But it has a sample application you can test with that..
BTW: there is another library Anti Grain Geometry[^] Check if that helps.
Regards,
Sandip.
|
|
|
|
|
that is exactly I was looking for.
chesnokov
|
|
|
|
|
It might be slow as it uses GDI. It needs to be converted to GDI+ objects.
chesnokov
|
|
|
|
|
Yes probably with LockBits()/UnlockBits() it might be fast
Let me know if it improves performance.
Also one request if you are going to convert it to GDI+ Please post a article for the same on CP.
Regards,
Sandip.
|
|
|
|
|
Chesnokov,
Not exactly an answer to your question, but following website efg[^]has helped me understand couple of algorithms about image processing (it's been around 5-6 years now). The site still exists. I am not sure how often they update this website, but there might be few links relevant for reference.
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hello everyone,
I find when a C++ console process loads, the DLLs msvcp90d.dll and msvcr90d.dll are always loaded. My question I want to find the different functions of the DLLs and why CRT runtime provides two DLLs other than one.
I have not find any formal information from search. I just did some self analysis and find msvcp90d.dll exports C++ functions and msvcr90d.dll exports C functions. I am not 100% sure. Any ideas?
thanks in advance,
George
|
|
|
|
|
That's because one contains the MS C Runtime and the other the MS Standard C++ Library and Standard Template Library. You can use msvcr90.dll from 'C' as well as C++ but msvcp90.dll is designed only to be used from C++, hence they're split. It may also be down to the sheer scale and historical baggage associated with the projects. The C Runtime is a big enough beast on its own without trying to put the Standard library in the same package. Also the C Runtime is I think basically a Microsoft in house development whereas the C++ Standard library is developed in cooperation with Mr Plauger's DinkumWare.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|