Create a 3D ray. RAY = createRay3d(P1, P2) Create a ray starting from point P1 and going in the direction of point P2. Example createRay3d See also creatLine3d
0001 function ray = createRay3d(p1, p2) 0002 % Create a 3D ray. 0003 % 0004 % RAY = createRay3d(P1, P2) 0005 % Create a ray starting from point P1 and going in the direction of point 0006 % P2. 0007 % 0008 % Example 0009 % createRay3d 0010 % 0011 % See also 0012 % creatLine3d 0013 0014 % ------ 0015 % Author: David Legland 0016 % e-mail: david.legland@inrae.fr 0017 % INRAE - BIA Research Unit - BIBS Platform (Nantes) 0018 % Created: 2020-05-25, using Matlab 9.8.0.1323502 (R2020a) 0019 % Copyright 2020 INRAE. 0020 0021 ray = [p1 (p2-p1)];