Rectangle

Concrete subclass of Shape representing a rectangular patch.

Contents

Description

Rectangle represents the shape of a rectangle on a plane. It does not have a volume, but it is used to force a user-defined primary grid plane and four primary grid lines, which corresponds to the four sides of the rectangle, in maxwell_run.

Construction

shape = Rectangle(normal_axis, intercept, rect)
shape = Rectangle(normal_axis, intercept, rect, dl_max)

Example

% Create an instance of Rectangle.
shape = Rectangle(Axis.z, 100, [0 100; 0 100]);
% Use the constructed shape in maxwell_run().
[E, H] = maxwell_run({INITIAL ARGUMENTS}, 'OBJ', {'vacuum', 'none', 1.0}, shape, {REMAINING ARGUMENTS});

See Also

Plane, Line, Point, ZeroVolShape, maxwell_run