[−][src]Struct codenano::Helix
A DNA helix. All bases of all strands must be on a helix.
The three angles are illustrated in the following image, from the NASA website:
Fields
origin: Point<f64>
Position of the origin of the helix axis.
roll: f64
Angle around the axis of the helix.
yaw: f64
Horizontal rotation.
pitch: f64
Vertical rotation.
Methods
impl Helix
[src]
pub fn theta(&self, n: isize, right: bool, cst: &Parameters) -> f64
[src]
Angle of base number n
around this helix.
pub fn space_pos(&self, p: &Parameters, n: isize, right: bool) -> [f64; 3]
[src]
3D position of a nucleotide on this helix. n
is the position along the axis, and right
is true iff the 5' to 3' direction of the strand containing that nucleotide runs in the same direction as the axis of the helix.
pub fn axis_pos(&self, p: &Parameters, n: isize) -> [f64; 3]
[src]
3D position of the projection of the nucleotide on its helix.
n
is the position along the axis.
Trait Implementations
impl<'de> Deserialize<'de> for Helix
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Helix
[src]
Auto Trait Implementations
impl RefUnwindSafe for Helix
impl Send for Helix
impl Sync for Helix
impl Unpin for Helix
impl UnwindSafe for Helix
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,