cross2edges

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 1.0, Creation date: 2012-04-10, Last change: 2025-09-14

calculates in 2D the crossing point of two straight lines

Description

The procedure seems to work but needs more testing

See Also: cross4P , cross2edges2

Example Illustration

 missing image of cross2edges(pa,na,pb,nb)

Syntax

[cp,ka,kb]=cross2edges(pa,na,pb,nb)

Input Parameter

pa: point a
na: direction vector a
pb: point b
nb: direction vector b

Output Parameter

cp: crossing point
ka: factor of direction vector a
kb: factor of direction vector a




Copyright 2012-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21