Open debeshmandal opened 4 years ago
Nucleotide should be able to accept a 4x4 matrix to translate, transform it. The function should look something like this:
Nucleotide
class Nucleotide: ... def transform(matrix: np.ndarray): self.pos_com = np.matmul(matrix, self.pos_com) ... return
Another thing that can be done is creating an Abstract Class called Transformable that Polygon and Nucleotide classes can subclass, to ensure there is no copy and pasting of transformation methods
Transformable
Polygon
Nucleotide
should be able to accept a 4x4 matrix to translate, transform it. The function should look something like this:Another thing that can be done is creating an Abstract Class called
Transformable
thatPolygon
andNucleotide
classes can subclass, to ensure there is no copy and pasting of transformation methods