Skip to content

Commit

Permalink
Javadoc and comments: Use an HTTPS URL
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 14, 2024
1 parent fb537c8 commit ca0a9c0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface Vector<V extends Vector<V>> extends Spatial {
/** Get the L<sub>2</sub> norm (commonly known as the Euclidean norm) for the vector.
* This corresponds to the common notion of vector magnitude or length and
* is defined as the square root of the sum of the squares of all vector components.
* @see <a href="http://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
* @see <a href="https://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
* @return L<sub>2</sub> norm for the vector
*/
double norm();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static IllegalArgumentException illegalNorm(final double norm) {
* or length and is defined as the square root of the sum of the squares of all vector components.
* @param x vector component
* @return L<sub>2</sub> norm for the vector with the given components
* @see <a href="http://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
* @see <a href="https://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
*/
public static double norm(final double x) {
return Math.abs(x);
Expand All @@ -89,7 +89,7 @@ public static double norm(final double x) {
* @param x1 first vector component
* @param x2 second vector component
* @return L<sub>2</sub> norm for the vector with the given components
* @see <a href="http://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
* @see <a href="https://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
*/
public static double norm(final double x1, final double x2) {
return Math.hypot(x1, x2);
Expand All @@ -102,7 +102,7 @@ public static double norm(final double x1, final double x2) {
* @param x2 second vector component
* @param x3 third vector component
* @return L<sub>2</sub> norm for the vector with the given components
* @see <a href="http://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
* @see <a href="https://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
*/
public static double norm(final double x1, final double x2, final double x3) {
return Norm.EUCLIDEAN.of(x1, x2, x3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public boolean isEmpty() {
/** {@inheritDoc} */
@Override
public double getSize() {
// see http://geomalgorithms.com/a01-_area.html#3D-Planar-Polygons
// see https://geomalgorithms.com/a01-_area.html#3D-Planar-Polygons
final List<Vector3D> vertices = getVertices();

double crossSumX = 0.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static LinePath buildHullPath(final Collection<Vector2D> vertices,
* distribution.
*
* @see <a href=
* "http://en.wikipedia.org/wiki/Convex_hull_algorithms#Akl-Toussaint_heuristic">
* "https://en.wikipedia.org/wiki/Convex_hull_algorithms#Akl-Toussaint_heuristic">
* Akl-Toussaint heuristic (Wikipedia)</a>
*/
public static final class Builder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* <p>
* This package contains code to perform a
* <a href="http://openjdk.java.net/projects/code-tools/jmh">JMH</a> run.
* <a href="https://openjdk.java.net/projects/code-tools/jmh">JMH</a> run.
* </p>
*/
package org.apache.commons.geometry.examples.jmh;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* </p>
* <p>
* We use here the topologists definition of the 1-sphere (see
* <a href="http://mathworld.wolfram.com/Sphere.html">Sphere</a> on
* <a href="https://mathworld.wolfram.com/Sphere.html">Sphere</a> on
* MathWorld), i.e. the 1-sphere is the one-dimensional closed curve
* defined in 2D as x<sup>2</sup>+y<sup>2</sup>=1.
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* </p>
* <p>
* We use here the topologists definition of the 2-sphere (see
* <a href="http://mathworld.wolfram.com/Sphere.html">Sphere</a> on
* <a href="https://mathworld.wolfram.com/Sphere.html">Sphere</a> on
* MathWorld), i.e. the 2-sphere is the two-dimensional surface
* defined in 3D as x<sup>2</sup>+y<sup>2</sup>+z<sup>2</sup>=1.
* </p>
Expand Down

0 comments on commit ca0a9c0

Please sign in to comment.