Module: Chem::Transform::ThreeDimension

Includes:
TwoDimension
Included in:
MDL::MDLAtom, XYZ::XyzAtom
Defined in:
lib/chem/utils/transform.rb

Instance Method Summary collapse

Methods included from TwoDimension

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

Instance Method Details

#initializeObject



26
27
28
29
# File 'lib/chem/utils/transform.rb', line 26

def initialize
  super
  @pos = Vector[0.0, 0.0]
end

#zObject



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

def z ; pos[2] ; end

#z=(z_val) ⇒ Object



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

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