plane_2d

class Interp2D(x, y, z)[source]

Bases: TriangleGenerator

class TriangleGenerator(x, y, z)[source]

Bases: object

cal_1d_shape()[source]
cal_coeff_left()[source]
cal_coeff_right()[source]
cal_coeffs()[source]

z = a x + b y + c

[ x_1 , y_1 , 1 ] [a] [z_1] [ x_2 , y_2 , 1 ] [b] = [z_2] [ x_3 , y_3 , 1 ] [c] = [z_3]

z_c = a x + b y + c

s^2 = (x-x_c)**2 + (y-y_c)**2 s = 1/b sqrt(a**2+b**2)(x-x_c) x = b s / sqrt(a**2+b**2) + x_c

cal_st_xy(x, y, bin_index=slice(None, None, None))[source]
cal_xy_st(s, t, bin_index=slice(None, None, None))[source]
generate(N)[source]
generate_st(N)[source]
solve_left(y, bin_index=slice(None, None, None))[source]
solve_right(y, bin_index=slice(None, None, None))[source]
solve_s(s_r, bin_index=slice(None, None, None))[source]

int (k_1 s + b_1 )^2 - (k_2 s + b_2)^2 ds = int d s_r

t_min_max(s, bin_index=slice(None, None, None))[source]
solve_2(a2, a1, x0, y)[source]

solve (a2 x**2 + a1 x)|_{x0}^{x} = y

solve_3(a3, a2, a1, x0, x_max, y)[source]

solve (a3 x**3 + a2 x**2 + a1 x**1)|_{x0}^{x} = y