Some geometric functions (for easy intersection computation for instance)
- Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3058
Classes
Methods
-
<static> compute2dEdgeEdgeIntersection(p1, u1, p2, u2) → {Object|null}
-
Function to ocmpute edge intersection in xy plane
Parameters:
Name Type Description p1
Object 1st point u1
Object 1st direction vector p2
Object 2nd point u2
Object 2nd direction vector - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3348
Returns:
{param1,param2,x,y,parallel} param1,2, params of equation intersecton=p1+param1*u1=p2+param2*u2, x,y coordinates, parallel if given edges are parallel- Type
- Object | null