make_rect2.m¶
Basic Information¶
SYNTAX: corners = make_rect2(corner1, corner2, width, scale, direction)
PURPOSE: Make rectangle from 2 corners and a width
INPUT:
corner1, corner2 = 2 corners in form [x;y] (drawing units)
width = width of rectangle to grow from these 2 corners (physical units)
direction = set to +1 to grow rectangle in positive x direction,
-1 to grow in negative x direction
OUTPUT:
corners = corners defining rectangle ([x1;y1] [x2;y2] [x3;y3] [x4;y4])