]> Dogcows Code - chaz/yoink/blobdiff - src/cml/vector/vector_functions.h
extreme refactoring
[chaz/yoink] / src / cml / vector / vector_functions.h
diff --git a/src/cml/vector/vector_functions.h b/src/cml/vector/vector_functions.h
deleted file mode 100644 (file)
index ce92371..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- C++ -*- ------------------------------------------------------------
-Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
-
-The Configurable Math Library (CML) is distributed under the terms of the
-Boost Software License, v1.0 (see cml/LICENSE for details).
-
- *-----------------------------------------------------------------------*/
-/** @file
- *  @brief
- */
-
-#ifndef vector_functions_h
-#define vector_functions_h
-
-namespace cml {
-
-/** Squared length of a vector. */
-template<typename E, class AT>
-inline typename vector<E,AT>::value_type
-length_squared(const vector<E,AT>& arg)
-{
-    return arg.length_squared();
-}
-
-/** Squared length of a vector expr. */
-template<typename XprT>
-inline typename XprT::value_type
-length_squared(VECXPR_ARG_TYPE arg)
-{
-    return arg.length_squared();
-}
-
-/** Length of a vector. */
-template<typename E, class AT>
-inline typename vector<E,AT>::value_type
-length(const vector<E,AT>& arg)
-{
-    return arg.length();
-}
-
-/** Length of a vector expr. */
-template<typename XprT>
-inline typename XprT::value_type
-length(VECXPR_ARG_TYPE arg)
-{
-    return arg.length();
-}
-
-/** Normalize a vector. */
-template<typename E, class AT>
-inline vector<E, AT>
-normalize(const vector<E,AT>& arg)
-{
-    vector<E, AT> result(arg);
-    result.normalize();
-    return result;
-}
-
-/** Normalize a vector expr. */
-template<typename XprT>
-inline typename XprT::result_type
-normalize(VECXPR_ARG_TYPE arg)
-{
-    return arg.normalize();
-}
-
-} // namespace cml
-
-#endif
-
-// -------------------------------------------------------------------------
-// vim:ft=cpp
This page took 0.026763 seconds and 4 git commands to generate.