81 hills = [hxpos hypos];
92 h = maxheight*2*(rand(hills,1)-0.5);
94 r = (maxrad-minrad)*rand(hills,1)+minrad;
107 hills(:,3) = h; hills(:,4) = r;
117 xhills = round(sqrt((area(2)-area(1))/(area(4)-area(3))*hills));
118 yhills = round(hills/xhills);
119 xdist = (area(2)-area(1))/(xhills+1);
120 ydist = (area(4)-area(3))/(yhills+1);
122 xpos = zeros(hills,1); ypos = xpos;
125 xpos(hill+1) = area(1) + (mod(hill,xhills)+1)*xdist;
126 ypos(hill+1) = area(3) + (floor(hill/xhills)+1)*ydist;
hillcount
Einstellungen für zufällige Hügel Angabe eines Wertes > 0 erstellt zufällige hügel der angegebenen Anzahl ...
max_hillradius
Maximaler Radius in Meter.
Matlab's base handle class (documentation generation substitute)
min_hillradius
Minimaler Radius in Meter.
function [ xpos , ypos ] = equidisthills()
function [ h , r ] = generatehills(maxheight, maxrad, minrad)
Höhen, zwischen -1 und 1.
max_hillheight
Höhe in Meter.
function generate()
Orte der Hügel.