https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 7898235958939b9d7a440b6768fd570ff7c4b025 authored by Jaime Garibay on 10 December 2020, 10:07:40 UTC
Corrected web description
Tip revision: 7898235
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