/// <summary> /// /// </summary> /// <param name="point"></param> /// <returns></returns> public Vec2d GradientAt(Vec2d point) { ToNoiseSpace(ref point); var g = SimplexNoise.GradientAt(point.X, point.Y); g.X *= _txInv; g.Y *= _tyInv; return(g); }
/// <summary> /// /// </summary> /// <param name="point"></param> /// <returns></returns> public Vec2d GradientAt(Vec2d point) { return(SimplexNoise.GradientAt(point.X * ScaleX, point.Y * ScaleY)); }
/// <summary> /// /// </summary> /// <param name="point"></param> /// <returns></returns> public Vec3d GradientAt(Vec3d point) { return(SimplexNoise.GradientAt(point.X * ScaleX, point.Y * ScaleY, point.Z * ScaleZ)); }