packages/pyglGA/ECSS/utilities.py
def lerp(point_a, point_b, fraction):
    """standard linear interpolation between two vectors and a fraction value

    :param point_a: first point
    :type point_a: numpy array
    :param point_b: second point
    :type point_b: numpy array
    :param fraction: value t
    :type fraction: float from 0.0 to 1.0
    :return: linearly interpolated value
    :rtype: numpy array
    """
    
    if isinstance(point_a, np.ndarray)==False:
        point_a = vec(point_a)
    if isinstance(point_b, np.ndarray)==False:
        point_b = vec(point_b)
    try:
        fraction = float(fraction)
    except ValueError:
        print (f'HEY! {fraction} is not a float!')
    
    return point_a + fraction * (point_b - point_a)
standard linear interpolation between two vectors and a fraction value

    :param point_a: first point
    :type point_a: numpy array
    :param point_b: second point
    :type point_b: numpy array
    :param fraction: value t
    :type fraction: float from 0.0 to 1.0
    :return: linearly interpolated value
    :rtype: numpy array
    
standard linear interpolation between two vectors and a fraction value
standard linear interpolation between two vectors and a fraction value
def lerp(point_a, point_b, fraction):
    if isinstance(point_a, np.ndarray)==False:
        point_a = vec(point_a)
    if isinstance(point_b, np.ndarray)==False:
        point_b = vec(point_b)
    try:
        fraction = float(fraction)
    except ValueError:
        print (f'HEY! {fraction} is not a float!')
    return point_a + fraction * (point_b - point_a)
def lerp ( point_a , point_b , fraction ) : if isinstance ( point_a , np . ndarray ) == False : point_a = vec ( point_a ) if isinstance ( point_b , np . ndarray ) == False : point_b = vec ( point_b ) try : fraction = float ( fraction ) except ValueError : print ( f'HEY! {fraction} is not a float!' ) return point_a + fraction * ( point_b - point_a )
standard linear interpolation between two vectors and a fraction value
standard linear interpolation between two vectors and a fraction value
"""standard linear interpolation between two vectors and a fraction value

    :param point_a: first point
    :type point_a: numpy array
    :param point_b: second point
    :type point_b: numpy array
    :param fraction: value t
    :type fraction: float from 0.0 to 1.0
    :return: linearly interpolated value
    :rtype: numpy array
    """
linearly interpolated value
linearly interpolated value
numpy array
point_a
None
point_b
None
fraction
None