File: include/geom/vector.hpp
1// --------------------------------------------------------------------------------------------------2// SPDX-License-Identifier: Apache-2.03// SPDX-FileCopyrightText: 2026 cpdocs developers4// --------------------------------------------------------------------------------------------------5#pragma once6 7/// Geometry primitives.8namespace geom {9 10/// A three-dimensional vector.11struct vector3 {12 /// Components.13 double x{}, y{}, z{};14};15 16/// Dot product of two vectors.17double dot(vector3 const& a, vector3 const& b) noexcept;18 19#if GEOM_HAVE_SIMD20/// Dot products of many vector pairs at once.21void dot_many(vector3 const* a, vector3 const* b, double* out, int count) noexcept;22#endif23 24} // namespace geom