Files
MonteCarlo-Matlab/Bounds.m
2024-05-13 12:09:59 +02:00

28 lines
756 B
Matlab

classdef Bounds
%BOUNDS Summary of this class goes here
% Detailed explanation goes here
properties
x LinearBounds
y LinearBounds
end
methods
function obj = Bounds(xIn,yIn) %BOUNDS Construct an instance of this class
% Detailed explanation goes here
obj.x = xIn;
obj.y = yIn;
end
function outputArg = area(obj)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
outputArg = obj.x.length * obj.y.length;
end
function outputArg = getRandomPoint(obj)
outputArg = Point(obj.x.getRandomValue, obj.y.getRandomValue);
end
end
end