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

cpp inline vec2d()

function vec2d

cpp inline vec2d( double X, double Y )

function operator-

cpp inline vec2d operator-()

function operator-

cpp inline vec2d operator-( const vec2d & r )

function operator+

cpp inline vec2d operator+( const vec2d & r )

function operator*

cpp inline vec2d operator*( double g )

function operator*

cpp inline double operator*( const vec2d & r )

function norm

cpp inline double norm()

function unit

cpp inline double unit()

function operator==

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

Public Attributes Documentation

variable x

cpp double x;

variable y

cpp double y;


Updated on 2026-03-31 at 16:02:10 +0000