sub method

Sp3dV3D sub(
  1. Sp3dV3D v
)

(en)Subtracts other vector from this vector and returns this vector.

(ja)このベクトルから他のベクトルを減算し、このベクトルを返します。

  • v : Other vector.

Implementation

Sp3dV3D sub(Sp3dV3D v) {
  x -= v.x;
  y -= v.y;
  z -= v.z;
  return this;
}