summaryrefslogtreecommitdiff
path: root/src/gp/gp_Ax22d.cxx
blob: ceff22943431e890062015d3f23ccff57a7c7195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// File vgeom_Ax22d.cxx , JCV 30/08/90
// JCV 1/10/90 Changement de nom du package vgeom -> gp
// JCV 12/12/90 Modif mineur suite a la premiere revue de projet
// LPA, JCV  07/92 passage sur C1.
// JCV 07/92 Introduction de la method Dump 

#include <gp_Ax22d.ixx>

void gp_Ax22d::Mirror (const gp_Pnt2d& P)
{
  gp_Pnt2d Temp = point;
  Temp.Mirror (P);
  point = Temp;
  vxdir.Reverse ();
  vydir.Reverse ();
}

gp_Ax22d gp_Ax22d::Mirrored(const gp_Pnt2d& P) const
{
  gp_Ax22d Temp = *this;
  Temp.Mirror (P);
  return Temp;
}

void gp_Ax22d::Mirror (const gp_Ax2d& A1)
{
  vydir.Mirror (A1);
  vxdir.Mirror (A1);
  gp_Pnt2d Temp = point;
  Temp.Mirror (A1);
  point = Temp;
}

gp_Ax22d gp_Ax22d::Mirrored(const gp_Ax2d& A1) const
{
  gp_Ax22d Temp = *this;
  Temp.Mirror (A1);
  return Temp;
}