NumCpp
2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
#include <cmath>
#include <iostream>
#include "NumCpp/NdArray.hpp"
#include "NumCpp/Utils/essentiallyEqual.hpp"
#include "NumCpp/Utils/sqr.hpp"
#include "NumCpp/Vector/Vec2.hpp"
#include "NumCpp/Vector/Vec3.hpp"
Go to the source code of this file.
Data Structures | |
class | nc::coordinates::Cartesian |
Cartensian coordinates. More... | |
Namespaces | |
namespace | nc |
namespace | nc::coordinates |
Functions | |
double | nc::coordinates::angle (const Cartesian &vec1, const Cartesian &vec2) noexcept |
angle between the two vectors More... | |
Cartesian | nc::coordinates::cross (const Cartesian &vec1, const Cartesian &vec2) noexcept |
Vector cross product. More... | |
double | nc::coordinates::norm (const Cartesian &vec) noexcept |
Vector norm. More... | |
Cartesian | nc::coordinates::normalize (const Cartesian &vec) noexcept |
normalize the input vector More... | |
double | nc::coordinates::operator* (const Cartesian &lhs, const Cartesian &rhs) noexcept |
Dot product of two cartesian points. More... | |
Cartesian | nc::coordinates::operator* (const Cartesian &vec, double scalar) noexcept |
Vector scalar multiplication. More... | |
Cartesian | nc::coordinates::operator* (double scalar, const Cartesian &vec) noexcept |
Vector scalar multiplication. More... | |
Cartesian | nc::coordinates::operator+ (const Cartesian &lhs, const Cartesian &rhs) noexcept |
Addition of two cartesian points. More... | |
Cartesian | nc::coordinates::operator- (const Cartesian &lhs, const Cartesian &rhs) noexcept |
Subtraction of two cartesian points. More... | |
Cartesian | nc::coordinates::operator/ (const Cartesian &vec, double denominator) noexcept |
Scalar Division a cartesian point. More... | |
std::ostream & | nc::coordinates::operator<< (std::ostream &os, const Cartesian &vec) |
Stream operator. More... | |
License Copyright 2018-2023 David Pilger
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Description Cartesian Object