godot/thirdparty/msdfgen/core/Vector2.hpp


#pragma once

#include <cmath>
#include "base.h"

namespace msdfgen {

/**
 * A 2-dimensional euclidean floating-point vector.
 * @author Viktor Chlumsky
 */
struct Vector2 {};

/// A vector may also represent a point, which shall be differentiated semantically using the alias Point2.
Point2;

/// Dot product of two vectors.
inline double dotProduct(const Vector2 a, const Vector2 b) {}

/// A special version of the cross product for 2D vectors (returns scalar value).
inline double crossProduct(const Vector2 a, const Vector2 b) {}

inline bool operator==(const Vector2 a, const Vector2 b) {}

inline bool operator!=(const Vector2 a, const Vector2 b) {}

inline Vector2 operator+(const Vector2 v) {}

inline Vector2 operator-(const Vector2 v) {}

inline bool operator!(const Vector2 v) {}

inline Vector2 operator+(const Vector2 a, const Vector2 b) {}

inline Vector2 operator-(const Vector2 a, const Vector2 b) {}

inline Vector2 operator*(const Vector2 a, const Vector2 b) {}

inline Vector2 operator/(const Vector2 a, const Vector2 b) {}

inline Vector2 operator*(double a, const Vector2 b) {}

inline Vector2 operator/(double a, const Vector2 b) {}

inline Vector2 operator*(const Vector2 a, double b) {}

inline Vector2 operator/(const Vector2 a, double b) {}

}