SUNY Geneseo Department of Mathematics
Monday, January 26
Math 384
Spring 2015
Prof. Doug Baldwin
>> P = [ 0 1 0 ];
>> V = [ 0 -1 -1 ];
>> P + 2 * V
ans =
0 -1 -2
>> ray = struct( 'origin', P, 'direction', V )
ray =
origin: [0 1 0]
direction: [0 -1 -1]
>> ray.direction
ans =
0 -1 -1
>> ray.origin + ray.direction * 2
ans =
0 -1 -2