MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / lengthSquared

Method lengthSquared

src/main/java/field/linalg/Vec2.java:572–575  ·  view source on GitHub ↗

Return the length squared of this vector. @return the length squared

()

Source from the content-addressed store, hash-verified

570 * @return the length squared
571 */
572 @SafeToToString
573 public double lengthSquared() {
574 return ((x * x) + (y * y));
575 }
576
577 /**
578 * Return the distance between <code>this</code> and <code>v</code>.

Callers 2

circumcenterOfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected