Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transform method to Nucleotide #57

Open
debeshmandal opened this issue Oct 12, 2020 · 0 comments
Open

Add transform method to Nucleotide #57

debeshmandal opened this issue Oct 12, 2020 · 0 comments
Labels
dna Coding tasks related to making DNA structures
Milestone

Comments

@debeshmandal
Copy link
Collaborator

Nucleotide should be able to accept a 4x4 matrix to translate, transform it. The function should look something like this:

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

@debeshmandal debeshmandal added the dna Coding tasks related to making DNA structures label Oct 12, 2020
@debeshmandal debeshmandal added this to the Version 0.4.0 milestone Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dna Coding tasks related to making DNA structures
Projects
None yet
Development

No branches or pull requests

1 participant