Commit 8ca0e2e7 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

ENH: Removed legacy functions from vtkMath.

Marked as deprecated in VTK 5.4.

Change-Id: Ic3684ed85eaa02c8e064ce943c162c3e6e9fb32a
parent 402bd74c
......@@ -83,16 +83,6 @@ public:
static float DegreesFromRadians( float radians);
static double DegreesFromRadians( double radians);
// Description:
// @deprecated Replaced by vtkMath::RadiansFromDegrees() as of VTK 5.4.
VTK_LEGACY(static float DegreesToRadians());
VTK_LEGACY(static double DoubleDegreesToRadians());
// Description:
// @deprecated Replaced by vtkMath::DegreesFromRadians() as of VTK 5.4.
VTK_LEGACY(static float RadiansToDegrees());
VTK_LEGACY(static double DoubleRadiansToDegrees());
// Description:
// Rounds a float to the nearest integer.
static int Round(float f) {
......@@ -1002,45 +992,6 @@ inline double vtkMath::DegreesFromRadians( double x )
return x * 57.29577951308232;
}
#ifndef VTK_LEGACY_REMOVE
//----------------------------------------------------------------------------
inline float vtkMath::DegreesToRadians()
{
VTK_LEGACY_REPLACED_BODY(vtkMath::DegreesToRadians, "VTK 5.4",
vtkMath::RadiansFromDegrees);
return vtkMath::RadiansFromDegrees( 1.f );
}
//----------------------------------------------------------------------------
inline double vtkMath::DoubleDegreesToRadians()
{
VTK_LEGACY_REPLACED_BODY(vtkMath::DoubleDegreesToRadians, "VTK 5.4",
vtkMath::RadiansFromDegrees);
return vtkMath::RadiansFromDegrees( 1. );
}
//----------------------------------------------------------------------------
inline float vtkMath::RadiansToDegrees()
{
VTK_LEGACY_REPLACED_BODY(vtkMath::RadiansToDegrees, "VTK 5.4",
vtkMath::DegreesFromRadians);
return vtkMath::DegreesFromRadians( 1.f );
}
//----------------------------------------------------------------------------
inline double vtkMath::DoubleRadiansToDegrees()
{
VTK_LEGACY_REPLACED_BODY(vtkMath::DoubleRadiansToDegrees, "VTK 5.4",
vtkMath::DegreesFromRadians);
return vtkMath::DegreesFromRadians( 1. );
}
#endif // #ifndef VTK_LEGACY_REMOVE
//----------------------------------------------------------------------------
inline vtkTypeInt64 vtkMath::Factorial( int N )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment