Google Classroom
GeoGebraGeoGebra Classroom

barycoordinate line, vector equation

solves for intersection of angle specified ray with line between two points uses barycentric coordinate formula, vector algebra angle specified ray intersection with line between 2 given points use barycentric coordinate formula of line scalar b, vectors u, w two points on line to find vector z on line z = b·u + (1-b)·w input points A, B create vectors u, w from orgin resp. create direction vector Θ from angle input α solve vector equation: a,b scalar, Θ, u, w, z vectors a·Θ = z = b·u + (1-b)·w by taking DotProduct with vector perpendicular to Θ ϕ=PerpendicularVector[Θ] a·ϕ∙Θ = 0 = b·ϕ∙u + (1-b)·ϕ∙w slove for barycoordinate b of equation for z b = ϕ∙w / (ϕ∙w - ϕ∙u) note that barycoordinate 0<b<1 for z between A, B equation works up to 180⁰ angle ambiguity can use the sign of a to resolve the ambiguity a = Θ∙z