예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="point"></param>
        /// <returns></returns>
        public Vec2d GradientAt(Vec2d point)
        {
            ToNoiseSpace(ref point);
            var g = PerlinNoise.GradientAt(point.X, point.Y);

            g.X *= _txInv;
            g.Y *= _tyInv;
            return(g);
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="point"></param>
 /// <returns></returns>
 public Vec2d GradientAt(Vec2d point)
 {
     return(PerlinNoise.GradientAt(point.X * ScaleX, point.Y * ScaleY));
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="point"></param>
 /// <returns></returns>
 public Vec3d GradientAt(Vec3d point)
 {
     return(PerlinNoise.GradientAt(point.X * ScaleX, point.Y * ScaleY, point.Z * ScaleZ));
 }