Algorithm where a line is touching the image borders in Java

Completado Publicado Sep 8, 2010 Pagado a la entrega
Completado Pagado a la entrega

I need a algorithm for two points (S1, S2) where a line touches the borders. Input of the function are two points (P1, P2) and the image border (MaxX, MaxY). The output should be the two points (S1, S2) where the line (created by P1, P2) touches the borders of the image.

The function should look like this:

Class Point {

Int X;

Int Y;

}

Class Line {

Point P1;

Point P2;

}

Line PLine = new Line();

[url removed, login to view] = P1;

[url removed, login to view] = P2;

Line S = FindLine(Line PLine, Int MaxX, int MaxY);

## Deliverables

1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No 3rd party components unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement).

You have to test your solution!

No GUI or graphic is needed.

## Platform

System requirements:

Java / Eclipse

Efficient algorithm

Only free source code

Windows XP and Windows 7

Ingeniería Arquitectura de software Verificación de software

Nº del proyecto: #3708470

Sobre el proyecto

18 propuestas Proyecto remoto Activo Sep 9, 2010

Adjudicado a:

XaCaHaa

See private message.

$12 USD en 30 días
(10 comentarios)
2.4

18 freelancers están ofertando un promedio de $37 por este trabajo

cevouk

See private message.

$42.5 USD en 30 días
(150 comentarios)
7.0
Andreena

See private message.

$63.75 USD en 30 días
(239 comentarios)
5.8
mastermatlab

See private message.

$76.5 USD en 30 días
(49 comentarios)
5.7
ovidiuv

See private message.

$42.5 USD en 30 días
(234 comentarios)
5.6
thanhhungqblx

See private message.

$11.9 USD en 30 días
(36 comentarios)
3.6
spgodara

See private message.

$34 USD en 30 días
(9 comentarios)
3.6
studiovsolution

See private message.

$38.25 USD en 30 días
(21 comentarios)
3.5
peanuxsl

See private message.

$6.8 USD en 30 días
(33 comentarios)
3.4
quantumcomputers

See private message.

$21.25 USD en 30 días
(8 comentarios)
3.2
dushii86

See private message.

$29.75 USD en 30 días
(10 comentarios)
2.8
ArfanMirza

See private message.

$72.25 USD en 30 días
(6 comentarios)
2.4
goodInc

See private message.

$10.2 USD en 30 días
(8 comentarios)
2.3
StasDB

See private message.

$17 USD en 30 días
(11 comentarios)
2.3
albetjanuarvw

See private message.

$85 USD en 30 días
(4 comentarios)
0.5
lpga

See private message.

$21.25 USD en 30 días
(0 comentarios)
0.0
chamlyvw

See private message.

$25.5 USD en 30 días
(1 comentario)
0.0
hypuk

See private message.

$42.5 USD en 30 días
(0 comentarios)
0.0
cfreedvw

See private message.

$59.5 USD en 30 días
(0 comentarios)
0.0