MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / dot

Method dot

src/org/opensourcephysics/numerics/Vec3D.java:125–127  ·  view source on GitHub ↗

Returns the dot product of this vector and vector v1. @param v1 the other vector @return the dot product of this and v1

(Vec3D v1)

Source from the content-addressed store, hash-verified

123 * @return the dot product of this and v1
124 */
125 public final double dot(Vec3D v1) {
126 return(this.x*v1.x+this.y*v1.y+this.z*v1.z);
127 }
128
129 /**
130 * Returns the squared magnitude of this vector.

Callers 1

angleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected