In Progress

C++ Trigonometry/Vector Calculation

Write a highly efficient C++ function that calculates the magnitude and direction (in degrees) of a given x,y coordinate such as with this definition:

void calcVector(x, y, float* magnitude, float* direction)

You can also just show me how to use an existing library. I looked at Boost C++ and MV++ but didn't see the function I needed from them.

A template style function would be nice in case I don't want to use floats but not necessary for a perfect 10 score. A function defined to be inline would be good too. The function has to be executed for every pixel on the screen over and over again so its got to be efficient!

## Deliverables

The code should be a stand-alone c++ module that can compile on Mac/Linux/PC.

Skills: C Programming, Engineering, Graphic Design, Linux, Mac OS, Microsoft, MySQL, PHP, Software Architecture, Software Testing, Windows Desktop

See more: vector use, vector template, vector php, vector library, use case module, programming vector, programming on mac, programming definition, library vector, i.t. degrees, float programming, float c programming, efficient php programming, definition of programming, c vector library, c template library, c template function, c programming template, c programming on mac, c programming mac, c programming function, c# module, mv library, linux boost, pixel perfect c

About the Employer:
( 23 reviews ) Grafton, United States

Project ID: #2955325

Awarded to:

mz41

See private message.

$17 USD in 3 days
(29 Reviews)
4.1

7 freelancers are bidding on average $18 for this job

renardpaul

See private message.

$19.13 USD in 3 days
(126 Reviews)
6.8
losgambias

See private message.

$17 USD in 3 days
(42 Reviews)
6.4
themazeeu

See private message.

$19.13 USD in 3 days
(64 Reviews)
5.5
techleadvnvw

See private message.

$19.13 USD in 3 days
(6 Reviews)
3.4
codestudiovw

See private message.

$15.3 USD in 3 days
(7 Reviews)
2.8
andromeda2000

See private message.

$17 USD in 3 days
(0 Reviews)
0.0