use #pragma once
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_AABB_H )
|
||||
#define INCLUDED_MATH_AABB_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Axis-aligned bounding-box data types and related operations.
|
||||
@@ -287,5 +286,3 @@ inline AABB aabb_for_oriented_aabb_safe( const AABB& aabb, const Matrix4& transf
|
||||
inline AABB aabb_infinite(){
|
||||
return AABB( Vector3( 0, 0, 0 ), Vector3( c_aabb_max, c_aabb_max, c_aabb_max ) );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_CURVE_H )
|
||||
#define INCLUDED_MATH_CURVE_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Curve data types and related operations.
|
||||
@@ -170,5 +169,3 @@ inline void KnotVector_openUniform( Knots& knots, std::size_t count, std::size_t
|
||||
knots[i + equalKnots] = Knots::value_type( double(i + 1) * 1.0 / double(difference + 1) );
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined ( INCLUDED_EXPRESSION_H )
|
||||
#define INCLUDED_EXPRESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <math/matrix.h>
|
||||
|
||||
@@ -555,5 +554,3 @@ template<typename First>
|
||||
inline MatrixTransposed<First> matrix_transposed( const First& first ){
|
||||
return MatrixTransposed<First>( first );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_FRUSTUM_H )
|
||||
#define INCLUDED_MATH_FRUSTUM_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief View-frustum data types and related operations.
|
||||
@@ -650,5 +649,3 @@ inline Vector4 viewer_from_viewproj( const Matrix4& viewproj ){
|
||||
}
|
||||
return viewer;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_LINE_H )
|
||||
#define INCLUDED_MATH_LINE_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Line data types and related operations.
|
||||
@@ -177,5 +176,3 @@ inline DoubleRay plane3_intersect_plane3( const Plane3& plane, const Plane3& oth
|
||||
|
||||
return line;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_MATRIX_H )
|
||||
#define INCLUDED_MATH_MATRIX_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Matrix data types and related operations.
|
||||
@@ -1169,5 +1168,3 @@ template<typename TextOutputStreamType>
|
||||
inline TextOutputStreamType& ostream_write( TextOutputStreamType& ostream, const Matrix4& m ){
|
||||
return ostream << m.x() << ' ' << m.y() << ' ' << m.z() << ' ' << m.t();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_PI_H )
|
||||
#define INCLUDED_MATH_PI_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Pi constants and degrees/radians conversion.
|
||||
@@ -39,5 +38,3 @@ inline double radians_to_degrees( double radians ){
|
||||
inline double degrees_to_radians( double degrees ){
|
||||
return degrees * c_DEG2RADMULT;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_PLANE_H )
|
||||
#define INCLUDED_MATH_PLANE_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Plane data types and related operations.
|
||||
@@ -174,5 +173,3 @@ template<typename P, typename V>
|
||||
inline BasicVector3<V> plane3_project_point( const Plane3___<P>& plane, const BasicVector3<V>& point ){
|
||||
return point - plane.normal() * plane3_distance_to_point( plane, point );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_QUATERNION_H )
|
||||
#define INCLUDED_MATH_QUATERNION_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Quaternion data types and related operations.
|
||||
@@ -300,6 +299,3 @@ inline void matrix4_pivoted_rotate_by_axisangle( Matrix4& self, const Vector3& a
|
||||
matrix4_rotate_by_axisangle( self, axis, angle );
|
||||
matrix4_translate_by_vec3( self, vector3_negated( pivotpoint ) );
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_MATH_VECTOR_H )
|
||||
#define INCLUDED_MATH_VECTOR_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Vector data types and related operations.
|
||||
@@ -746,5 +745,3 @@ template<typename Element>
|
||||
inline BasicVector3<Element> vector4_projected( const BasicVector4<Element>& self ){
|
||||
return vector3_scaled( vector4_to_vector3( self ), 1.0 / self[3] );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user