Home > General-Functions > SUGR > Line_2D > sugr_construct_parallel_lO_Line_2D.m

sugr_construct_parallel_lO_Line_2D

PURPOSE ^

% Construct line parallel to line l through origin

SYNOPSIS ^

function Line_2D = sugr_construct_parallel_lO_Line_2D(l)

DESCRIPTION ^

% Construct line parallel to line l through origin

 lp = sugr_construct_parallel_lO_Line_2D(l)

 * l, lp =  2D line struct {l.h,l.Crr}

 Wolfgang Förstner 1/2011
 wfoerstn@uni-bonn.de 

 See also sugr_Line_2D, sugr_construct_parallel_lx_Line_2D,
 sugr_construct_midline_Line_2D, sugr_construct_footpoint_Ol_Point_2D,
 sugr_construct_footpoint_xl_Point_2D,
 sugr_construct_join_Line_2D, sugr_construct_join_Line_3D

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% Construct line parallel to line l through origin
0002 %
0003 % lp = sugr_construct_parallel_lO_Line_2D(l)
0004 %
0005 % * l, lp =  2D line struct {l.h,l.Crr}
0006 %
0007 % Wolfgang Förstner 1/2011
0008 % wfoerstn@uni-bonn.de
0009 %
0010 % See also sugr_Line_2D, sugr_construct_parallel_lx_Line_2D,
0011 % sugr_construct_midline_Line_2D, sugr_construct_footpoint_Ol_Point_2D,
0012 % sugr_construct_footpoint_xl_Point_2D,
0013 % sugr_construct_join_Line_2D, sugr_construct_join_Line_3D
0014 
0015 
0016 function Line_2D = sugr_construct_parallel_lO_Line_2D(l)
0017    
0018         G3 = diag([1,1,0]);
0019         h   = G3 * l.h;
0020         Clhh = sugr_get_CovM_homogeneous_Vector(l);
0021         Chh = G3 * Clhh * G3; 
0022     
0023 % generate line
0024 Line_2D = sugr_Line_2D(h,Chh);
0025

Generated on Sat 21-Jul-2018 20:56:10 by m2html © 2005