https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: f6cb8454d4946ecc40399f3746f6f570e6b3b2ea authored by Lars Bilke on 03 December 2020, 20:37:22 UTC
[cmake] generator expressions did not work with lists of libs.
Tip revision: f6cb845
Vector3.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#include "Vector3.h"

namespace MathLib
{

double scalarTriple(MathLib::Vector3 const& u, MathLib::Vector3 const& v,
                    MathLib::Vector3 const& w)
{
    MathLib::Vector3 const cross(MathLib::crossProduct(u, v));
    return MathLib::scalarProduct(cross,w);
}

}  // end namespace MathLib
back to top