addScalar method

Vector3 addScalar(
  1. double s
)

Adds the given scalar to this 3D vector.

Implementation

Vector3 addScalar(double s ) {
	x += s;
	y += s;
	z += s;

	return this;
}