vec2.opBinary - multiple declarations

Function vec2.opBinary

add value to all components of vector

vec2 opBinary(string op : "+")(
  float v
) const;

Function vec2.opBinary

multiply all components of vector by value

vec2 opBinary(string op : "*")(
  float v
) const;

Function vec2.opBinary

subtract value from all components of vector

vec2 opBinary(string op : "-")(
  float v
) const;

Function vec2.opBinary

divide all components of vector by value

vec2 opBinary(string op : "/")(
  float v
) const;

Function vec2.opBinary

add value to all components of vector

vec2 opBinary(string op : "+")(
  const vec2 v
) const;

Function vec2.opBinary

subtract value from all components of vector

vec2 opBinary(string op : "-")(
  const vec2 v
) const;

float opBinary(string op : "*")(
  const vec3 v
) const;