Module: Chem::Transform::ThreeDimension

Includes:
TwoDimension
Included in:
Atom, XYZ::XyzAtom, Record::HETATM
Defined in:
lib/chem/utils/transform.rb

Instance Method Summary collapse

Methods included from TwoDimension

#pos, #x, #x=, #y, #y=

Instance Method Details

#zObject

def initialize

  super
  @pos = Vector[0.0, 0.0]
end


32
# File 'lib/chem/utils/transform.rb', line 32

def z ; pos[2] ; end

#z=(z_val) ⇒ Object



33
# File 'lib/chem/utils/transform.rb', line 33

def z=(z_val) ; pos[2] = z_val ; end