Loading files
// Copyright (c) 1995-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.hxx>
#include <gp_Ax1.hxx>
#include <gp_Ax2.hxx>
#include <gp_Ax2d.hxx>
#include <gp_Dir.hxx>
#include <gp_Dir2d.hxx>
#include <gp_Pnt.hxx>
#include <gp_Pnt2d.hxx>
//=================================================================================================
const gp_Pnt& gp::Origin() noexcept
{
static const gp_Pnt gp_Origin(0, 0, 0);
return gp_Origin;
}
//=================================================================================================
const gp_Dir& gp::DX() noexcept
{
static const gp_Dir gp_DX(gp_Dir::D::X);
return gp_DX;
}
//=================================================================================================
const gp_Dir& gp::DY() noexcept
{
static const gp_Dir gp_DY(gp_Dir::D::Y);
return gp_DY;
}
//=================================================================================================
const gp_Dir& gp::DZ() noexcept
{
static const gp_Dir gp_DZ(gp_Dir::D::Z);
return gp_DZ;
}
//=================================================================================================
const gp_Ax1& gp::OX() noexcept
{
static const gp_Ax1 gp_OX(gp_Pnt(0, 0, 0), gp_Dir::D::X);
return gp_OX;
}
//=================================================================================================
const gp_Ax1& gp::OY() noexcept
{
static const gp_Ax1 gp_OY(gp_Pnt(0, 0, 0), gp_Dir::D::Y);
return gp_OY;
}
//=================================================================================================
const gp_Ax1& gp::OZ() noexcept
{
static const gp_Ax1 gp_OZ(gp_Pnt(0, 0, 0), gp_Dir::D::Z);
return gp_OZ;
}
//=================================================================================================
const gp_Ax2& gp::XOY() noexcept
{
static const gp_Ax2 gp_XOY(gp_Pnt(0, 0, 0), gp_Dir::D::Z);
return gp_XOY;
}
//=================================================================================================
const gp_Ax2& gp::ZOX() noexcept
{
static const gp_Ax2 gp_ZOX(gp_Pnt(0, 0, 0), gp_Dir::D::Y);
return gp_ZOX;
}
//=================================================================================================
const gp_Ax2& gp::YOZ() noexcept
{
static const gp_Ax2 gp_YOZ(gp_Pnt(0, 0, 0), gp_Dir::D::X);
return gp_YOZ;
}
//=================================================================================================
const gp_Pnt2d& gp::Origin2d() noexcept
{
static const gp_Pnt2d gp_Origin2d(0, 0);
return gp_Origin2d;
}
//=================================================================================================
const gp_Dir2d& gp::DX2d() noexcept
{
static const gp_Dir2d gp_DX2d(gp_Dir2d::D::X);
return gp_DX2d;
}
//=================================================================================================
const gp_Dir2d& gp::DY2d() noexcept
{
static const gp_Dir2d gp_DY2d(gp_Dir2d::D::Y);
return gp_DY2d;
}
//=================================================================================================
const gp_Ax2d& gp::OX2d() noexcept
{
static const gp_Ax2d gp_OX2d(gp_Pnt2d(0, 0), gp_Dir2d::D::X);
return gp_OX2d;
}
//=================================================================================================
const gp_Ax2d& gp::OY2d() noexcept
{
static const gp_Ax2d gp_OY2d(gp_Pnt2d(0, 0), gp_Dir2d::D::Y);
return gp_OY2d;
}
3d097a032This file is pinned to the selected release. Download the original to open it in your design tool.