C++ 3D - 2D projection class

Peruttu Julkaistu May 4, 2008 Maksettu toimituksen yhteydessä
Peruttu Maksettu toimituksen yhteydessä

I need a C++ "Projector" class that will receive the coordinates of a 3D point and return its projection in a plane. The projector object will be initialized with 4 pairs 3D -> 2D, and based on these it will calculate the position of the projection plane. After this initialization, it should be able to project any 3D point in the plane.

The interface will be something like this:

class Projector {

public:

Projector();

void* feed(double 3dx, double 3dy, double 3dz, int 2dx, int 2dy);

// returns null if there hasn't been enough calls to feed() to build the model

2DPoint project(double 3dx, double 3dy, double 3dz);

}

## Deliverables

The class should be enough for deliverable, but in case I have difficulties testing, you should also provide a [url removed, login to view] wrapper that will compile in Linux with g++ 4.2, and read from STDIN in the following format:

3dx, 3dy, 3dz, 2dx, 2dy

3dx, 3dy, 3dz, 2dx, 2dy

3dx, 3dy, 3dz, 2dx, 2dy

3dx, 3dy, 3dz, 2dx, 2dy

3dx, 3dy, 3dz

3dx, 3dy, 3dz

3dx, 3dy, 3dz

3dx, 3dy, 3dz

3dx, 3dy, 3dz

and will output 2d coordinates after reading each line after the 4th one.

C-ohjelmointi tekniikka Linux MySQL PHP Tietojärjestelmäarkkitehtuuri Ohjelmistojen testaus

Projektin tunnus: #3911114

Tietoa projektista

15 ehdotusta Etäprojekti Aktiivinen May 14, 2008

15 freelanceria on tarjonnut keskimäärin $46 tähän työhön

ElanGroup

See private message.

$59.5 USD 4 päivässä
(320 arvostelua)
8.1
mathteamvw

See private message.

$85 USD 4 päivässä
(25 arvostelua)
6.6
rainbow

See private message.

$170 USD 4 päivässä
(39 arvostelua)
5.6
ipapadop

See private message.

$51 USD 4 päivässä
(18 arvostelua)
3.9
numericalso

See private message.

$8.5 USD 4 päivässä
(2 arvostelua)
4.0
gowrigm

See private message.

$17 USD 4 päivässä
(30 arvostelua)
3.9
bobgrigoryan

See private message.

$21.25 USD 4 päivässä
(13 arvostelua)
3.2
hoangtuanbs

See private message.

$63.75 USD 4 päivässä
(6 arvostelua)
3.0
gotenhan

See private message.

$42.5 USD 4 päivässä
(2 arvostelua)
1.9
braineater88

See private message.

$17 USD 4 päivässä
(1 arvostelu)
2.1
expcoderxrrg

See private message.

$17 USD 4 päivässä
(10 arvostelua)
2.2
sumeetaroravw

See private message.

$34 USD 4 päivässä
(0 arvostelua)
0.0
godga

See private message.

$34 USD 4 päivässä
(0 arvostelua)
0.0
bwassya

See private message.

$12.75 USD 4 päivässä
(0 arvostelua)
0.0
raonaeema

See private message.

$51 USD 4 päivässä
(1 arvostelu)
0.0