| // Created on: 1991-12-17 | |
| // Created by: Jean-Claude Vauthier | |
| // Copyright (c) 1991-1999 Matra Datavision | |
| // Copyright (c) 1999-2014 OPEN CASCADE SAS | |
| // | |
| // This file is part of Open CASCADE Technology software library. | |
| // | |
| // This library is free software; you can redistribute it and/or modify it under | |
| // the terms of the GNU Lesser General Public License version 2.1 as published | |
| // by the Free Software Foundation, with special exception defined in the file | |
| // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT | |
| // distribution for complete text of the license and disclaimer of any warranty. | |
| // | |
| // Alternatively, this file may be used under the terms of Open CASCADE | |
| // commercial license or contractual agreement. | |
| #include <gp_Lin.hxx> | |
| #include <gp_Circ.hxx> | |
| #include <gp_Parab.hxx> | |
| #include <gp_Hypr.hxx> | |
| #include <gp_Elips.hxx> | |
| #include <gp_Lin2d.hxx> | |
| #include <gp_Circ2d.hxx> | |
| #include <gp_Parab2d.hxx> | |
| #include <gp_Hypr2d.hxx> | |
| #include <gp_Elips2d.hxx> | |
| inline gp_Pnt ElCLib::Value(const double U, const gp_Lin& L) | |
| { | |
| return ElCLib::LineValue(U, L.Position()); | |
| } | |
| inline gp_Pnt ElCLib::Value(const double U, const gp_Circ& C) | |
| { | |
| return ElCLib::CircleValue(U, C.Position(), C.Radius()); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Lin& L, gp_Pnt& P, gp_Vec& V1) | |
| { | |
| ElCLib::LineD1(U, L.Position(), P, V1); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1) | |
| { | |
| ElCLib::CircleD1(U, C.Position(), C.Radius(), P, V1); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) | |
| { | |
| ElCLib::CircleD2(U, C.Position(), C.Radius(), P, V1, V2); | |
| } | |
| inline void ElCLib::D3(const double U, | |
| const gp_Circ& C, | |
| gp_Pnt& P, | |
| gp_Vec& V1, | |
| gp_Vec& V2, | |
| gp_Vec& V3) | |
| { | |
| ElCLib::CircleD3(U, C.Position(), C.Radius(), P, V1, V2, V3); | |
| } | |
| inline gp_Pnt ElCLib::Value(const double U, const gp_Elips& E) | |
| { | |
| return ElCLib::EllipseValue(U, E.Position(), E.MajorRadius(), E.MinorRadius()); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1) | |
| { | |
| ElCLib::EllipseD1(U, E.Position(), E.MajorRadius(), E.MinorRadius(), P, V1); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) | |
| { | |
| ElCLib::EllipseD2(U, E.Position(), E.MajorRadius(), E.MinorRadius(), P, V1, V2); | |
| } | |
| inline void ElCLib::D3(const double U, | |
| const gp_Elips& E, | |
| gp_Pnt& P, | |
| gp_Vec& V1, | |
| gp_Vec& V2, | |
| gp_Vec& V3) | |
| { | |
| ElCLib::EllipseD3(U, E.Position(), E.MajorRadius(), E.MinorRadius(), P, V1, V2, V3); | |
| } | |
| inline gp_Pnt ElCLib::Value(const double U, const gp_Hypr& H) | |
| { | |
| return ElCLib::HyperbolaValue(U, H.Position(), H.MajorRadius(), H.MinorRadius()); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1) | |
| { | |
| ElCLib::HyperbolaD1(U, H.Position(), H.MajorRadius(), H.MinorRadius(), P, V1); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) | |
| { | |
| ElCLib::HyperbolaD2(U, H.Position(), H.MajorRadius(), H.MinorRadius(), P, V1, V2); | |
| } | |
| inline void ElCLib::D3(const double U, | |
| const gp_Hypr& H, | |
| gp_Pnt& P, | |
| gp_Vec& V1, | |
| gp_Vec& V2, | |
| gp_Vec& V3) | |
| { | |
| ElCLib::HyperbolaD3(U, H.Position(), H.MajorRadius(), H.MinorRadius(), P, V1, V2, V3); | |
| } | |
| inline gp_Pnt ElCLib::Value(const double U, const gp_Parab& Prb) | |
| { | |
| return ElCLib::ParabolaValue(U, Prb.Position(), Prb.Focal()); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Parab& Prb, gp_Pnt& P, gp_Vec& V1) | |
| { | |
| ElCLib::ParabolaD1(U, Prb.Position(), Prb.Focal(), P, V1); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Parab& Prb, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) | |
| { | |
| ElCLib::ParabolaD2(U, Prb.Position(), Prb.Focal(), P, V1, V2); | |
| } | |
| inline gp_Pnt2d ElCLib::Value(const double U, const gp_Lin2d& L) | |
| { | |
| return ElCLib::LineValue(U, L.Position()); | |
| } | |
| inline gp_Pnt2d ElCLib::Value(const double U, const gp_Circ2d& C) | |
| { | |
| return ElCLib::CircleValue(U, C.Axis(), C.Radius()); | |
| } | |
| inline gp_Pnt2d ElCLib::Value(const double U, const gp_Elips2d& E) | |
| { | |
| return ElCLib::EllipseValue(U, E.Axis(), E.MajorRadius(), E.MinorRadius()); | |
| } | |
| inline gp_Pnt2d ElCLib::Value(const double U, const gp_Hypr2d& H) | |
| { | |
| return ElCLib::HyperbolaValue(U, H.Axis(), H.MajorRadius(), H.MinorRadius()); | |
| } | |
| inline gp_Pnt2d ElCLib::Value(const double U, const gp_Parab2d& Prb) | |
| { | |
| return ElCLib::ParabolaValue(U, Prb.Axis(), Prb.Focal()); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Lin2d& L, gp_Pnt2d& P, gp_Vec2d& V1) | |
| { | |
| ElCLib::LineD1(U, L.Position(), P, V1); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1) | |
| { | |
| ElCLib::CircleD1(U, C.Axis(), C.Radius(), P, V1); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1) | |
| { | |
| ElCLib::EllipseD1(U, E.Axis(), E.MajorRadius(), E.MinorRadius(), P, V1); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Hypr2d& H, gp_Pnt2d& P, gp_Vec2d& V1) | |
| { | |
| ElCLib::HyperbolaD1(U, H.Axis(), H.MajorRadius(), H.MinorRadius(), P, V1); | |
| } | |
| inline void ElCLib::D1(const double U, const gp_Parab2d& Prb, gp_Pnt2d& P, gp_Vec2d& V1) | |
| { | |
| ElCLib::ParabolaD1(U, Prb.Axis(), Prb.Focal(), P, V1); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) | |
| { | |
| ElCLib::CircleD2(U, C.Axis(), C.Radius(), P, V1, V2); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) | |
| { | |
| ElCLib::EllipseD2(U, E.Axis(), E.MajorRadius(), E.MinorRadius(), P, V1, V2); | |
| } | |
| inline void ElCLib::D2(const double U, const gp_Hypr2d& H, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) | |
| { | |
| ElCLib::HyperbolaD2(U, H.Axis(), H.MajorRadius(), H.MinorRadius(), P, V1, V2); | |
| } | |
| inline void ElCLib::D2(const double U, | |
| const gp_Parab2d& Prb, | |
| gp_Pnt2d& P, | |
| gp_Vec2d& V1, | |
| gp_Vec2d& V2) | |
| { | |
| ElCLib::ParabolaD2(U, Prb.Axis(), Prb.Focal(), P, V1, V2); | |
| } | |
| inline void ElCLib::D3(const double U, | |
| const gp_Circ2d& C, | |
| gp_Pnt2d& P, | |
| gp_Vec2d& V1, | |
| gp_Vec2d& V2, | |
| gp_Vec2d& V3) | |
| { | |
| ElCLib::CircleD3(U, C.Axis(), C.Radius(), P, V1, V2, V3); | |
| } | |
| inline void ElCLib::D3(const double U, | |
| const gp_Elips2d& E, | |
| gp_Pnt2d& P, | |
| gp_Vec2d& V1, | |
| gp_Vec2d& V2, | |
| gp_Vec2d& V3) | |
| { | |
| ElCLib::EllipseD3(U, E.Axis(), E.MajorRadius(), E.MinorRadius(), P, V1, V2, V3); | |
| } | |
| inline void ElCLib::D3(const double U, | |
| const gp_Hypr2d& H, | |
| gp_Pnt2d& P, | |
| gp_Vec2d& V1, | |
| gp_Vec2d& V2, | |
| gp_Vec2d& V3) | |
| { | |
| ElCLib::HyperbolaD3(U, H.Axis(), H.MajorRadius(), H.MinorRadius(), P, V1, V2, V3); | |
| } | |
| inline gp_Vec ElCLib::DN(const double U, const gp_Lin& L, const int N) | |
| { | |
| return ElCLib::LineDN(U, L.Position(), N); | |
| } | |
| inline gp_Vec ElCLib::DN(const double U, const gp_Circ& C, const int N) | |
| { | |
| return ElCLib::CircleDN(U, C.Position(), C.Radius(), N); | |
| } | |
| inline gp_Vec ElCLib::DN(const double U, const gp_Elips& E, const int N) | |
| { | |
| return ElCLib::EllipseDN(U, E.Position(), E.MajorRadius(), E.MinorRadius(), N); | |
| } | |
| inline gp_Vec ElCLib::DN(const double U, const gp_Hypr& H, const int N) | |
| { | |
| return ElCLib::HyperbolaDN(U, H.Position(), H.MajorRadius(), H.MinorRadius(), N); | |
| } | |
| inline gp_Vec ElCLib::DN(const double U, const gp_Parab& Prb, const int N) | |
| { | |
| return ElCLib::ParabolaDN(U, Prb.Position(), Prb.Focal(), N); | |
| } | |
| inline gp_Vec2d ElCLib::DN(const double U, const gp_Lin2d& L, const int N) | |
| { | |
| return ElCLib::LineDN(U, L.Position(), N); | |
| } | |
| inline gp_Vec2d ElCLib::DN(const double U, const gp_Circ2d& C, const int N) | |
| { | |
| return ElCLib::CircleDN(U, C.Axis(), C.Radius(), N); | |
| } | |
| inline gp_Vec2d ElCLib::DN(const double U, const gp_Elips2d& E, const int N) | |
| { | |
| return ElCLib::EllipseDN(U, E.Axis(), E.MajorRadius(), E.MinorRadius(), N); | |
| } | |
| inline gp_Vec2d ElCLib::DN(const double U, const gp_Hypr2d& H, const int N) | |
| { | |
| return ElCLib::HyperbolaDN(U, H.Axis(), H.MajorRadius(), H.MinorRadius(), N); | |
| } | |
| inline gp_Vec2d ElCLib::DN(const double U, const gp_Parab2d& Prb, const int N) | |
| { | |
| return ElCLib::ParabolaDN(U, Prb.Axis(), Prb.Focal(), N); | |
| } | |
| inline double ElCLib::Parameter(const gp_Lin& L, const gp_Pnt& P) | |
| { | |
| return ElCLib::LineParameter(L.Position(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Circ& C, const gp_Pnt& P) | |
| { | |
| return ElCLib::CircleParameter(C.Position(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Elips& E, const gp_Pnt& P) | |
| { | |
| return ElCLib::EllipseParameter(E.Position(), E.MajorRadius(), E.MinorRadius(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Hypr& H, const gp_Pnt& P) | |
| { | |
| return ElCLib::HyperbolaParameter(H.Position(), H.MajorRadius(), H.MinorRadius(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Parab& Prb, const gp_Pnt& P) | |
| { | |
| return ElCLib::ParabolaParameter(Prb.Position(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Lin2d& L, const gp_Pnt2d& P) | |
| { | |
| return ElCLib::LineParameter(L.Position(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Circ2d& C, const gp_Pnt2d& P) | |
| { | |
| return ElCLib::CircleParameter(C.Axis(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Elips2d& E, const gp_Pnt2d& P) | |
| { | |
| return ElCLib::EllipseParameter(E.Axis(), E.MajorRadius(), E.MinorRadius(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Hypr2d& H, const gp_Pnt2d& P) | |
| { | |
| return ElCLib::HyperbolaParameter(H.Axis(), H.MajorRadius(), H.MinorRadius(), P); | |
| } | |
| inline double ElCLib::Parameter(const gp_Parab2d& Prb, const gp_Pnt2d& P) | |
| { | |
| return ElCLib::ParabolaParameter(Prb.Axis(), P); | |
| } |