ParabolicCut() static private method

static private ParabolicCut ( double x1, double y1, double x2, double y2, double ys ) : double
x1 double
y1 double
x2 double
y2 double
ys double
return double
示例#1
0
 public float Cut(float ys, float x)
 {
     if (!Flipped)
     {
         return(Convert.ToSingle(Math.Round(x - Fortune.ParabolicCut(Edge.LeftData[0], Edge.LeftData[1], Edge.RightData[0], Edge.RightData[1], ys), 10)));
     }
     return(Convert.ToSingle(Math.Round(x - Fortune.ParabolicCut(Edge.RightData[0], Edge.RightData[1], Edge.LeftData[0], Edge.LeftData[1], ys), 10)));
 }
示例#2
0
 public double Cut(double ys, double x)
 {
     if (!Flipped)
     {
         return(Math.Round(x - Fortune.ParabolicCut(Edge.LeftData.X, Edge.LeftData.Y, Edge.RightData.X, Edge.RightData.Y, ys), 10));
     }
     return(Math.Round(x - Fortune.ParabolicCut(Edge.RightData.X, Edge.RightData.Y, Edge.LeftData.X, Edge.LeftData.Y, ys), 10));
 }
示例#3
0
 public double Cut(double ys, double x)
 {
     return(!Flipped?Math.Round(x - Fortune.ParabolicCut(Edge.LeftData[0], Edge.LeftData[1], Edge.RightData[0], Edge.RightData[1], ys), 10) : Math.Round(x - Fortune.ParabolicCut(Edge.RightData[0], Edge.RightData[1], Edge.LeftData[0], Edge.LeftData[1], ys), 10));
 }