Struct grafen::surface::Cylinder [] [src]

pub struct Cylinder {
    pub name: Option<String>,
    pub residue: Option<Residue>,
    pub lattice: LatticeType,
    pub alignment: Direction,
    pub cap: Option<CylinderCap>,
    pub origin: Coord,
    pub radius: f64,
    pub height: f64,
    pub coords: Vec<Coord>,
}

A 2D cylindrical surface.

Fields

Name of cylinder in database.

Optional residue placed at each coordinate. If not set the cylinder describes a general collection of coordinates.

lattice type used to construct the cylinder surface structure.

The axis along which the cylinder is aligned.

Cylinders can be capped at its ends.

Origin of the cylinder. Located in the center of the bottom.

Radius of cylinder.

Height of cylinder.

List of coordinates belonging to the cylinder. Relative to the `origin.

Methods

impl Cylinder
[src]

[src]

Construct the cylinder coordinates and return the object.

Errors

Returns an error if either the radius or height is non-positive.

Trait Implementations

impl<'a> Component<'a> for Cylinder
[src]

[src]

Return the size of the object's bounding box seen from origo. Read more

[src]

Return an Iterator over all atoms in the object as CurrentAtom objects.

[src]

Return the number of atoms in the object.

[src]

Return the component with its coordinates adjusted to lie within its box.

impl Translate for Cylinder
[src]

[src]

Translate the object by an input Coord.

[src]

Translate the object by an input Coord in-place.

impl Clone for Cylinder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Cylinder
[src]

[src]

Formats the value using the given formatter.

impl Describe for Cylinder
[src]

[src]

Return a descriptive String of the object.

[src]

Return a very short descriptive String of the object. Typically just a name or type.