Definition at line 110 of file DunesBiome.cs.
111 {
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129 Point p =
new Point((startPoint.
X + endPoint.
X) / 2, (startPoint.
Y + endPoint.
Y) / 2);
130 p.X += anchorOffset.
X;
131 p.Y += anchorOffset.
Y;
132 Vector2D val = startPoint.ToVector2D();
133 Vector2D val2 = endPoint.ToVector2D();
135 double num = 0.5 / (val2.X - val.
X);
137 for (double num2 = 0.0; num2 <= 1.0; num2 += num)
138 {
142 if (point2 == point)
143 {
144 continue;
145 }
146 point = point2;
147 int num3 = description.Area.Width / 2 -
Math.
Abs(point2.
X - description.Area.Center.X);
148 int num4 = description.Surface[point2.
X] + (int)(
Math.
Sqrt(num3) * 3.0);
149 for (
int i = point2.
Y - 10;
i < point2.
Y;
i++)
150 {
152 {
154 }
155 }
156 for (
int j = point2.
Y; j < num4; j++)
157 {
159 Tile.SmoothSlope(point2.
X, j);
160 }
161 }
162 }
static double Sqrt(double d)
static double Abs(double value)
static Vector2D Lerp(Vector2D value1, Vector2D value2, double amount)
References Terraria.WorldBuilding.GenBase._tiles, System.Math.Abs(), Terraria.GameContent.Biomes.DunesBiome.DunesDescription.Area, Microsoft.Xna.Framework.Rectangle.Center, ReLogic.Utilities.Vector2D.Lerp(), Terraria.Tile.SmoothSlope(), System.Math.Sqrt(), Terraria.GameContent.Biomes.DunesBiome.DunesDescription.Surface, Microsoft.Xna.Framework.Point.X, ReLogic.Utilities.Vector2D.X, and Microsoft.Xna.Framework.Point.Y.
Referenced by Terraria.GameContent.Biomes.DunesBiome.PlaceHill().