Shapes
Shape is an abstract type which represents the shape of particles, and also the domain to place particles. See Shape for a list of relevant types and functions.
Existing shapes
The package provides three basic shapes. You can plot them using:
using MultipleScattering;
rectangle = Box([[0.0, -1.0],[1.0, 2.0]]);
circle = Sphere([-1.0, 0.0], 1.0);
timeofflight = TimeOfFlightPlaneWaveToPoint([1.0, 0.0], 3.0)
using Plots;
plot(rectangle, linecolor = :red)
plot!(circle, linecolor = :green)
plot!(timeofflight, linecolor = :blue)
The Box
and TimeOfFlightPlaneWaveToPoint
are usually region where particles are placed. Time of flight is a shape which contains shapes from a half space which take at most t
time to reach from the listener. The Circle
is also used to define circular particles.