Esempio n. 1
0
 public static Vec2f SmoothStep(Vec2f edge0, Vec2f edge1, Vec2f x)
 {
     return(new Vec2f()
     {
         x = MathF.SmoothStep(edge0.x, edge1.x, x.x),
         y = MathF.SmoothStep(edge0.y, edge1.y, x.y)
     });
 }
Esempio n. 2
0
 public static Vec2f SmoothStep(float edge0, float edge1, Vec2f x)
 {
     return(new Vec2f()
     {
         x = MathF.SmoothStep(edge0, edge1, x.x),
         y = MathF.SmoothStep(edge0, edge1, x.y)
     });
 }