Intersection point of two lines implemented in Java
* The denominators for the equations for ua and ub are the same.
* If the denominator for the equations for ua and ub is 0 then the two lines are parallel.
* If the denominator and numerator for the equations for ua and ub are 0 then the two lines are coincident.
* The equations apply to lines, if the intersection of line segments is required then it is only necessary to test if ua and ub lie between 0 and 1. Whichever one lies within that range then the corresponding line segment contains the intersection point. If both lie within the range of 0 to 1 then the intersection point is within both line segments.
File list:
lab1
...\build
...\.....\classes
...\.....\.......\com
...\.....\.......\...\ahristov
...\.....\.......\...\........\geometry
...\.....\.......\...\........\segments
...\.....\.......\.netbeans_automatic_build
...\.....\.......\Deseneaza.class
...\.....\.......\GCCanvas.class
...\.....\.......\GCGrafica.class
...\.....\.......\Segmente$1.class
...\.....\.......\Segmente$2.class
...\.....\.......\Segmente$3.class
...\.....\.......\Segmente.class
...\.....\empty
...\.....\generated-sources
...\.....\.................\ap-source-output
...\.....\built-jar.properties
...\.....\Segmente.html
...\dist
...\....\Intersectia_a_doua_segmente.jar
...\....\README.TXT
...\nbproject
...\.........\private
...\.........\.......\private.properties
...\.........\.......\private.xml
...\.........\build-impl.xml
...\.........\genfiles.properties
...\.........\project.properties
...\.........\project.xml
...\src
...\...\Deseneaza.java
...\...\GCCanvas.java
...\...\GCGrafica.java
...\...\Segmente.java
...\applet.policy
...\build.xml
...\manifest.mf