NAME
Chemistry::Bond
SYNOPSIS
use Chemistry::Bond;
my $bond = new Chemistry::Bond(
id => "b1",
type => '=',
atoms => [$a1, $a2]
);
METHODS
- Chemistry::Bond->new(name => value, ...)
-
Create a new Bond object with the specified attributes. Sensible defaults are used when possible.
- $bond->length()
-
Returns the length of the bond, i.e., the distance between the two atom objects in the bond. Returns zero if the bond does not have exactly two atoms.
SEE ALSO
Chemistry::Mol, Chemistry::Atom
AUTHOR
Ivan Tubert <itub@cpan.org>
COPYRIGHT
Copyright (c) 2003 Ivan Tubert. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.