Home > matGeom > geom2d > rays2d.m

rays2d

PURPOSE ^

RAYS2D Description of functions operating on planar rays.

SYNOPSIS ^

function rays2d(varargin)

DESCRIPTION ^

RAYS2D  Description of functions operating on planar rays.

   A ray is defined by a point (its origin), and a vector (its
   direction). The different parameters are bundled into a row vector:
   RAY = [x0 y0 dx dy];

   The ray contains all the points (x,y) such that:
   x = x0 + t*dx
   y = y0 + t*dy;
   for all t>0

   Contrary to a (straight) line, the points located before the origin do
   not belong to the ray.
   However, as rays and lines have the same representation, some functions
   working on lines are also working on rays (like 'transformLine').

   See also:
   points2d, vectors2d, lines2d
   createRay, bisector, isPointOnRay
   clipRay, drawRay

 ------
 Author: David Legland
 e-mail: david.legland@grignon.inra.fr
 Created: 2008-10-13,    using Matlab 7.4.0.287 (R2007a)
 Copyright 2008 INRA - BIA PV Nantes - MIAJ Jouy-en-Josas.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function rays2d(varargin)
0002 %RAYS2D  Description of functions operating on planar rays.
0003 %
0004 %   A ray is defined by a point (its origin), and a vector (its
0005 %   direction). The different parameters are bundled into a row vector:
0006 %   RAY = [x0 y0 dx dy];
0007 %
0008 %   The ray contains all the points (x,y) such that:
0009 %   x = x0 + t*dx
0010 %   y = y0 + t*dy;
0011 %   for all t>0
0012 %
0013 %   Contrary to a (straight) line, the points located before the origin do
0014 %   not belong to the ray.
0015 %   However, as rays and lines have the same representation, some functions
0016 %   working on lines are also working on rays (like 'transformLine').
0017 %
0018 %   See also:
0019 %   points2d, vectors2d, lines2d
0020 %   createRay, bisector, isPointOnRay
0021 %   clipRay, drawRay
0022 %
0023 % ------
0024 % Author: David Legland
0025 % e-mail: david.legland@grignon.inra.fr
0026 % Created: 2008-10-13,    using Matlab 7.4.0.287 (R2007a)
0027 % Copyright 2008 INRA - BIA PV Nantes - MIAJ Jouy-en-Josas.
0028 
0029 help('rays2d');

Generated on Wed 16-Feb-2022 15:10:47 by m2html © 2003-2019