perpendicular_3D: THEORY %---------------------------------------------------------------------------- % % Q. % .\ . % . \ . % . \ . d % . \ . . % . \ . . W = Q - P0 % W . c \ . . % . \ * P0 + t*v % . \ . del = (t-tp)*v % . * % . . P0 + tp*v % . . % .. % P0 % % % determine tp = intersection of perpendicular line from Q to line (P0,v) % = perp_pt(Q-P0,nzv) = (W*v)/(v*v) % c = length of this perpendicular line % del = (t-tp)*v % % dist(q,L) = distance from point q to line defined by perpendicular % % Author: Ricky Butler NASA Langley Research Center % %---------------------------------------------------------------------------- BEGIN
IMPORTING distance_3D
t,tp: VAR real
P0,Q,v,w,c,d,x,y,del: VAR Vect3
% In three dimensions, there are an infinite number of vectors perpendicular to a given vector % but given a line and a point (not on line), the perpendicular line is uniquely determined.
nzv: VAR Nz_vect3
perp_pt(Q,P0,nzv): real = (Q-P0)*nzv/(nzv*nzv)
perp_is_normal: LEMMA tp = perp_pt(Q,P0,nzv) IMPLIES LET c = (P0 + tp*nzv) - Q,
del = (t-tp)*nzv IN
del*c = 0
perp_is_min: LEMMA tp = perp_pt(Q,P0,nzv) IMPLIES LET d = (P0 + t*nzv) - Q,
c = (P0 + tp*nzv) - Q IN
norm(d) >= norm(c)
perp_gt_del: LEMMA tp = perp_pt(Q,P0,nzv) IMPLIES LET d = (P0 + t*nzv) - Q,
del = (t-tp)*nzv IN
norm(d) >= norm(del)
perp_comps: LEMMA tp = perp_pt(Q, P0,nzv) IMPLIES LET d = (P0 + t*nzv) - Q,
c = (P0 + tp*nzv) - Q,
del = (t-tp)*nzv IN
sq(norm(d)) = sq(norm(del)) + sq(norm(c))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.