vec3.opBinary - multiple declarations

Function vec3.opBinary

add value to all components of vector

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

Function vec3.opBinary

multiply all components of vector by value

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

Function vec3.opBinary

subtract value from all components of vector

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

Function vec3.opBinary

divide all components of vector by value

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

Function vec3.opBinary

add value to all components of vector

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

Function vec3.opBinary

subtract value from all components of vector

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

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

Function vec3.opBinary

multiply vector by matrix

vec3 opBinary(string op : "*")(
  const ref mat4 matrix
) const;