public double get_b() { if (true == Slope.isVertical()) { return(Double.NaN); } return(this.StartPoint.z.Value - (StartPoint.x * Slope.getAsSlope() * this.advanceDirection)); }
public double?getElevationAlong(double X) { if (true == Slope.isVertical()) { return(null); } double horizDistance = X - StartPoint.x; if (Math.Sign(horizDistance) != Math.Sign(Slope.getAsSlope())) { return(null); } return((double?) ((horizDistance * Slope.getAsSlope()) + this.StartPoint.z)); }