add method

Sp3dV3D add(
  1. Sp3dV3D v
)

(en)Adds other vector to this vector and returns this vector.

(ja)このベクトルに他のベクトルを加算し、このベクトルを返します。

  • v : Other vector.

Implementation

Sp3dV3D add(Sp3dV3D v) {
  x += v.x;
  y += v.y;
  z += v.z;
  return this;
}