~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipelib/ipegeo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
//! Return inverse.
447
447
IpeMatrix IpeMatrix::Inverse() const
448
448
{
449
 
  double t = 1.0/(iA[0]*iA[3]-iA[1]*iA[2]);
 
449
  double t = iA[0]*iA[3]-iA[1]*iA[2];
 
450
  assert(t != 0);
 
451
  t = 1.0/t;
450
452
  return IpeMatrix(iA[3]*t, -iA[1]*t,
451
453
                   -iA[2]*t, iA[0]*t,
452
454
                   (iA[2]*iA[5]-iA[3]*iA[4])*t,