1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 // JCV 30/08/90 Modif passage version C++ 2.0 sur Sun
16 // JCV 1/10/90 Changement de nom du package vgeom -> gp
17 // JCV 12/12/90 modifs suite a la premiere revue de projet
24 #include <gp_Trsf.hxx>
26 #include <Standard_ConstructionError.hxx>
28 Standard_Real gp_Lin::Distance (const gp_Lin& Other) const
30 if (pos.IsParallel (Other.pos, gp::Resolution())) {
31 return Other.Distance(pos.Location());
34 gp_Dir dir(pos.Direction().Crossed(Other.pos.Direction()));
35 Standard_Real D = gp_Vec (pos.Location(),Other.pos.Location())
42 void gp_Lin::Mirror (const gp_Pnt& P)
45 gp_Lin gp_Lin::Mirrored (const gp_Pnt& P) const
52 void gp_Lin::Mirror (const gp_Ax1& A1)
55 gp_Lin gp_Lin::Mirrored (const gp_Ax1& A1) const
62 void gp_Lin::Mirror (const gp_Ax2& A2)
65 gp_Lin gp_Lin::Mirrored (const gp_Ax2& A2) const