You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lineFromTwoPoint.m
    path of file: ./repos/PanoBasic/BasicProcessing/line_intersection
    
    the code of the file until where you have to start completion: function [ lines ] = lineFromTwoPoint( pt1, pt2 )
%LINEFROMTWOPOINT Generate line segment based on two points on panorama
%   pt1, pt2: two points on panorama

    
function [ lines ] = lineFromTwoPoint( pt1, pt2 )
%LINEFROMTWOPOINT Generate line segment based on two points on panorama
%   pt1, pt2: two points on panorama
%   lines: 
%       1~3-th dim: normal of the line
%       4-th dim: the projection dimension ID
%       5~6-th dim: the u of line segment end