polliwog/plane/plane.py
def from_points_and_vector(cls, p1, p2, vector):
        """
        Compute a plane which contains two given points and the given
        vector. Its reference point will be p1.

        For example, to find the vertical plane that passes through
        two landmarks:

            from_points_and_normal(p1, p2, vector)

        Another way to think about this: identify the plane to which
        your result plane should be perpendicular, and specify vector
        as its normal vector.

        """
        vg.shape.check(locals(), "p1", (3,))
        vg.shape.check(locals(), "p2", (3,))
        vg.shape.check(locals(), "vector", (3,))

        normal = np.cross(p2 - p1, vector)

        return cls(point_on_plane=p1, unit_normal=normal)

        Compute a plane which contains two given points and the given
        vector. Its reference point will be p1.

        For example, to find the vertical plane that passes through
        two landmarks:

            from_points_and_normal(p1, p2, vector)

        Another way to think about this: identify the plane to which
        your result plane should be perpendicular, and specify vector
        as its normal vector.

        
Compute a plane which contains two given points and the given
vector. Its reference point will be p1.

For example, to find the vertical plane that passes through
two landmarks.



Another way to think about this: identify the plane to which
your result plane should be perpendicular, and specify vector
as its normal vector.
Compute a plane which contains two given points and the given vector . Its reference point will be p1 . For example to find the vertical plane that passes through two landmarks . Another way to think about this : identify the plane to which your result plane should be perpendicular and specify vector as its normal vector .
def from_points_and_vector(cls, p1, p2, vector):
        vg.shape.check(locals(), "p1", (3,))
        vg.shape.check(locals(), "p2", (3,))
        vg.shape.check(locals(), "vector", (3,))
        normal = np.cross(p2 - p1, vector)
        return cls(point_on_plane=p1, unit_normal=normal)
def from_points_and_vector ( cls , p1 , p2 , vector ) : vg . shape . check ( locals ( ) , "p1" , ( 3 , ) ) vg . shape . check ( locals ( ) , "p2" , ( 3 , ) ) vg . shape . check ( locals ( ) , "vector" , ( 3 , ) ) normal = np . cross ( p2 - p1 , vector ) return cls ( point_on_plane = p1 , unit_normal = normal )
Compute a plane which contains two given points and the given
vector.
Compute a plane which contains two given points and the given vector .
"""
        Compute a plane which contains two given points and the given
        vector. Its reference point will be p1.

        For example, to find the vertical plane that passes through
        two landmarks:

            from_points_and_normal(p1, p2, vector)

        Another way to think about this: identify the plane to which
        your result plane should be perpendicular, and specify vector
        as its normal vector.

        """
cls
p1
p2
vector