Skip to content

vec2d

Public Functions

Name
vec2d()
vec2d(double X, double Y)
vec2d operator-()
vec2d operator-(const vec2d & r)
vec2d operator+(const vec2d & r)
vec2d operator*(double g)
double operator*(const vec2d & r)
double norm()
double unit()
bool operator==(const vec2d & r) const

Public Attributes

Name
double x
double y

Public Functions Documentation

function vec2d

inline vec2d()

function vec2d

inline vec2d(
    double X,
    double Y
)

function operator-

inline vec2d operator-()

function operator-

inline vec2d operator-(
    const vec2d & r
)

function operator+

inline vec2d operator+(
    const vec2d & r
)

function operator*

inline vec2d operator*(
    double g
)

function operator*

inline double operator*(
    const vec2d & r
)

function norm

inline double norm()

function unit

inline double unit()

function operator==

inline bool operator==(
    const vec2d & r
) const

Public Attributes Documentation

variable x

double x;

variable y

double y;

Updated on 2024-03-17 at 12:58:44 -0600