예제 #1
0
파일: pad.py 프로젝트: pcbre/pcbre
    def __get_trace_repr(self) -> Trace:
        w, p0, p1 = self.__get_unrot_trace_points()

        p0 = Point2.from_homol_mat(self.pad_to_world_matrix.dot(p0.homol()))
        p1 = Point2.from_homol_mat(self.pad_to_world_matrix.dot(p1.homol()))
        return Trace(p0, p1, w, self.layer)
예제 #2
0
파일: pad.py 프로젝트: pcbre/pcbre
 def world_to_pad(self, pt: Vec2) -> Vec2:
     return Point2.from_homol_mat(self.world_to_pad_matrix.dot(pt.homol()))
예제 #3
0
파일: pad.py 프로젝트: pcbre/pcbre
    def __get_rel_trace_repr(self) -> Trace:
        w, p0, p1 = self.__get_unrot_trace_points()

        p0 = Point2.from_homol_mat(self.__inv_p2p_mat.dot(p0.homol()))
        p1 = Point2.from_homol_mat(self.__inv_p2p_mat.dot(p1.homol()))
        return Trace(p0, p1, w, self.layer)