Struct grafen::surface::Sheet [] [src]

pub struct Sheet {
    pub name: Option<String>,
    pub residue: Option<Residue>,
    pub lattice: LatticeType,
    pub std_z: Option<f64>,
    pub origin: Coord,
    pub normal: Direction,
    pub length: f64,
    pub width: f64,
    pub coords: Vec<Coord>,
}

A rectangular sheet.

Fields

Name of component.

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

Lattice type used to construct the surface structure.

Standard deviation along z of coordinates. Added to the coordinates when construct is called.

Origin of the sheet. Located in the lower-left position of it.

Normal vector of the sheet.

Length of the sheet along the x axis.

Length of the sheet along the y axis.

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

Methods

impl Sheet
[src]

[src]

Construct the sheet coordinates and return the object.

Errors

Returns an error if either the length or width is non-positive.

[src]

Cut a circle out of coordinates in the sheet.

Trait Implementations

impl<'a> Component<'a> for Sheet
[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 Sheet
[src]

[src]

Translate the object by an input Coord.

[src]

Translate the object by an input Coord in-place.

impl Clone for Sheet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Sheet
[src]

[src]

Formats the value using the given formatter.

impl Describe for Sheet
[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.

impl Periodic for Sheet
[src]

[src]

Clone sheet coordinates into PBC multiples.