|
all i know is that Opengl is best for 3d rendering and sdl for 2d.
if you have all the data and only need the rendering.
I personally use Tao framework(Opengl for .net framework) and SdldotNet(Handles screen rendering,keyboard and mouse input).
Tao framework and SdlDotNet both got tools to integrate 3d/2d rendering on your windows application.
All you need to know about opengl http://fly.cc.fer.hr/~unreal/theredbook/[^]
|
|
|
|
|
Your problem breaks down into two parts
1. Datum
This is the basic shape of the earth that is used to model the earth (or any planet). This can be very simple such as treating the earth as a sphere or more complex as a non-spherical object etc. The parameters that make up the model are the datum's, and there are many different datum's, remember there can date back hundreds of years. The most common is WGS84 as used by positioning systems such as GPS. Most modern charts are based on this datum. But not all!
The model also includes what the measurements are referenced to for example Vertical datum can be referenced to sea level at a specific location perhaps using High water springs or Neaps, or an average such as Mean High Water Springs etc!.
If you have data in one datum but are using another then welcome to a world of pain! There are various algorithms available for converting between then (such as Molendsky), check out the US NOAA web sites but accuracy varies. For some datums there are no known accurate conversions.
2. The projection - linked to the datum but deals with how a spherical object is projected on to a flat surface Mercator, Transverse Mercator (TM), Genomic, Lambert, Polar etc.
So you end up with a real mash of things including grids (UTM), military grids, grids for national co-ordinates (OS in the UK etc).
If you are not too concerned about accuracy (planetarium) i.e. working with small scale data (say an accuracy of a couple of miles). Then datums are going to be less important - and you might get away with treating the planet as a sphere!
If accuracy is required seriously think about using a third part package, or prepare for a lot of learning and re-inventing the wheel work!
|
|
|
|
|
hello.
i would like to get help on this book: ebook Cormen, Leiserson, Rivest - Introduction To Algorithms 2nd Edition Solutions (Instructors Manual)
i would appreciate very much if someone has a link to this or an pdf version?
THanks!
best regards.
|
|
|
|
|
Did you try this[^]?
It's time for a new signature.
|
|
|
|
|
Hi Richard, thanks. but i was referring to an pdf version, an ebook, or smth like that
best regards.
|
|
|
|
|
Did you actually try any of the links?
It's time for a new signature.
|
|
|
|
|
i guess one of the links worked
best regards.
|
|
|
|
|
Hello,
I have some facts like:
asdf(a,b).
asdf(b,c).
asdf(c,d).
etc.
I'd like to do some function
givemelettersinvolved(L) that instantiates in L a list that contains the constants involved in those facts
for example
asdf(a,b).
asdf(b,c).
givemelettersinvolved(L) would give L = [a, b, c]
How can I make this?
I was trying with
...(L) :- asdf(A,B), member(A,L), member(B,L).
But its not working
|
|
|
|
|
wtf are you talkin about
anyway the answer was to use findall(X, predicate(X), List)
|
|
|
|
|
hi there,
I'm looking for a code snippet for conjugate gradient and preconditioned conjugate gradient iterative solver for system of linear equations in C++ or C#.
|
|
|
|
|
if I were needing that, this[^] is one of the places that I would look at; it holds lots of links.
|
|
|
|
|
|
Anyone knows of any math software that has unlimited precision (i.e., 123^123,456,789 mod 987,654,321)? I'm looking into Mathematica Home Edition, but I'm not sure if it does that. I know Maple could calculate PI to as many digits as you want if you were willing to wait, but I'm not sure if that applied to all functions in general or just built-in ones.
|
|
|
|
|
Most, if not all, of the Mathematica/Maple/Mathcad type packages have an arbitrary precision integer and/or rational number capability. Check their online docco and/or user forums. If you're looking for a language to write your own code, Java has BigInteger built in, and there are free packages for other popular languages. (I have used a couple of the C++ ones - the quality does tend to vary a bit, but the good ones are good.)
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Thanks, forgot about MathCad which I used to love. Does the BigInteger support ridiculously large numbers (i.e., unlimitedly large)? You know any for C#? I downloaded VS2010 to check it out but that think sucks big time.
|
|
|
|
|
Java BigInteger (and any other reasonable implememntation) will grow until you run out of memory (or patience ). I don't play C#, but a quick google found C# BigInteger Class[^] right here on CP. Re VS2010: I've seen so much suckage reported here I'm not going anywhere near it!
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
That article describes a private BigInteger attempt on an old .NET version (which did not come with a built-in one); since 4.0 .NET has its own, pretty good, BigInteger class, probably very comparable to the venerable Java one.
|
|
|
|
|
Since .NET 4.0 C# has BigInteger too.
|
|
|
|
|
Thanks, Luc. As I noted above, I don't inhabit those realms!
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Great, now if only VS2010 would play nice.
|
|
|
|
|
Mathematica from Wolfram should do it.
|
|
|
|
|
You're a few months late.
Thanks, but I ended up using Visual C# Dot Net 4.0 BigInteger class.
|
|
|
|
|
here is a problem. I've got an array of records with 2 fields: ID and ParentID. This array represents a hierarchical tree, where each node can have multiple children.
What I need is to convert it to a more compact form, like this (code is in C#)
public class TreeBranch
{
int ID;
List<TreeBranch> Children;
.........................
}
................
List<TreeBranch> MainTree; // a collection that contains the whole tree
I've came up with a dizzy solution, but I don't like it since it is O (n^2).
Any ideas will be appreciated )
|
|
|
|
|
What was your solution?
Anyway, that way I might do this would be like this: while you are building the tree, also keep an array of your tree nodes, indexable by ID. Then when you want to add a node to its parent's Children, you can just index into that array to get the parent object.
edit: if the nodes are in pre-order you can build the array while you process the items, otherwise you'd need two passes: one to fill the array, and one to build the tree (that is, of course, still O(n) )
modified on Thursday, July 29, 2010 7:21 AM
|
|
|
|
|
Hi & thanks for reply&interest.
Nevermind my previous thought - that idea was not working )
What I need to do is to write a recursive method, so it will be able to work at any depth.
Not that great with recursion, but job needs to be done.
Once I'll finish that, I'll post an answer to share with others.
|
|
|
|