lines_3D: THEORY %---------------------------------------------------------------------------- % The traditional way to defines a line L is by specifying two distinct points, % P0 and P1, on it. % % A line L can also be defined by a point and a direction. Let P0 be a % point on the line L and let dv be a nonzero vector specifying the direction % of the line. This is equivalent to the two point definition, since we % could just put dv=(P1-P0).
% We can also add dynamics to our line. If we assume a particle is % moving in a line with a constant velocity, then we can define % this linear motion using the location of the point at time zero, % a velocity vector and a time parameter t: % % p0 + t*vel % % which provides the location of the particle at time t. % % Author: Ricky Butler NASA Langley Research Center %---------------------------------------------------------------------------- BEGIN
IMPORTING distance_3D % Basic | Dynamic %------------------|-----------------
Line : Type = [# p: Vect3, % point on the line| position at time 0
v: Nz_vect3 #] % direction vector | velocity vector
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.