1 // File: Geom2d_Geometry.cxx
2 // Created: Wed Mar 24 19:22:26 1993
5 // Copyright: Matra Datavision 1993
7 //File Geom2d_Geometry.cxx, JCV 23/06/91
9 #include <Geom2d_Geometry.ixx>
10 #include <Standard_ConstructionError.hxx>
12 typedef Handle(Geom2d_Geometry) Handle(Geometry);
13 typedef Geom2d_Geometry Geometry;
15 typedef gp_Pnt2d Pnt2d;
16 typedef gp_Vec2d Vec2d;
17 typedef gp_Trsf2d Trsf2d;
21 void Geom2d_Geometry::Mirror (const gp_Pnt2d& P) {
30 void Geom2d_Geometry::Mirror (const gp_Ax2d& A) {
38 void Geom2d_Geometry::Rotate (const gp_Pnt2d& P, const Standard_Real Ang) {
41 T.SetRotation (P, Ang);
46 void Geom2d_Geometry::Scale (const gp_Pnt2d& P, const Standard_Real S) {
54 void Geom2d_Geometry::Translate (const gp_Vec2d& V) {
62 void Geom2d_Geometry::Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2) {
69 Handle(Geometry) Geom2d_Geometry::Mirrored (const gp_Pnt2d& P) const {
71 Handle(Geometry) me = this;
72 Handle(Geometry) G = me->Copy();
78 Handle(Geometry) Geom2d_Geometry::Mirrored (const gp_Ax2d& A) const {
80 Handle(Geometry) me = this;
81 Handle(Geometry) G = me->Copy();
87 Handle(Geometry) Geom2d_Geometry::Rotated (
88 const gp_Pnt2d& P, const Standard_Real Ang) const {
90 Handle(Geometry) me = this;
91 Handle(Geometry) G = me->Copy();
97 Handle(Geometry) Geom2d_Geometry::Scaled (
98 const gp_Pnt2d& P, const Standard_Real S) const {
100 Handle(Geometry) me = this;
101 Handle(Geometry) G = me->Copy();
107 Handle(Geometry) Geom2d_Geometry::Transformed (const gp_Trsf2d& T) const {
109 Handle(Geometry) me = this;
110 Handle(Geometry) G = me->Copy();
116 Handle(Geometry) Geom2d_Geometry::Translated (const gp_Vec2d& V) const {
118 Handle(Geometry) me = this;
119 Handle(Geometry) G = me->Copy();
125 Handle(Geometry) Geom2d_Geometry::Translated (
126 const gp_Pnt2d& P1, const gp_Pnt2d& P2) const {
128 Handle(Geometry) me = this;
129 Handle(Geometry) G = me->Copy();
130 G->Translate (P1, P2);