diff --git a/src/main/java/pythagoras/d/AbstractArc.java b/src/main/java/pythagoras/d/AbstractArc.java index bf94943..e1b1583 100644 --- a/src/main/java/pythagoras/d/AbstractArc.java +++ b/src/main/java/pythagoras/d/AbstractArc.java @@ -225,7 +225,7 @@ public abstract class AbstractArc extends RectangularShape implements IArc /** The path iterator transformation */ private AffineTransform t; - /** The current segmenet index */ + /** The current segment index */ private int index; /** The number of arc segments the source arc subdivided to be approximated by Bezier @@ -238,19 +238,19 @@ public abstract class AbstractArc extends RectangularShape implements IArc /** The step to calculate next arc subdivision point */ private double step; - /** The tempopary value of cosinus of the current angle */ + /** The temporary value of cosinus of the current angle */ private double cos; - /** The tempopary value of sinus of the current angle */ + /** The temporary value of sinus of the current angle */ private double sin; /** The coefficient to calculate control points of Bezier curves */ private double k; - /** The tempopary value of x coordinate of the Bezier curve control vector */ + /** The temporary value of x coordinate of the Bezier curve control vector */ private double kx; - /** The tempopary value of y coordinate of the Bezier curve control vector */ + /** The temporary value of y coordinate of the Bezier curve control vector */ private double ky; /** The x coordinate of the first path point (MOVE_TO) */ diff --git a/src/main/java/pythagoras/d/AbstractRectangle.java b/src/main/java/pythagoras/d/AbstractRectangle.java index 8c35c26..6c8a8d8 100644 --- a/src/main/java/pythagoras/d/AbstractRectangle.java +++ b/src/main/java/pythagoras/d/AbstractRectangle.java @@ -170,7 +170,7 @@ public abstract class AbstractRectangle extends RectangularShape implements IRec private double x, y, width, height; private AffineTransform t; - /** The current segmenet index. */ + /** The current segment index. */ private int index; Iterator (IRectangle r, AffineTransform at) { diff --git a/src/main/java/pythagoras/d/Area.java b/src/main/java/pythagoras/d/Area.java index e2652b1..e5501d4 100644 --- a/src/main/java/pythagoras/d/Area.java +++ b/src/main/java/pythagoras/d/Area.java @@ -1236,7 +1236,7 @@ public class Area implements IShape, Cloneable /** offsets[i] - index in array of coords and i - index in array of rules. */ private int[] offsets = new int[10]; - /** The quantity of MOVETO rule occurences. */ + /** The quantity of MOVETO rule occurrences. */ private int moveToCount = 0; /** True if the shape is polygonal. */ diff --git a/src/main/java/pythagoras/d/Path.java b/src/main/java/pythagoras/d/Path.java index 171d8c6..b1f5fc9 100644 --- a/src/main/java/pythagoras/d/Path.java +++ b/src/main/java/pythagoras/d/Path.java @@ -359,7 +359,7 @@ public final class Path implements IShape, Cloneable /* The path rule. */ protected int rule; - /** The space required in points buffer for different segmenet types. */ + /** The space required in points buffer for different segment types. */ protected static int[] pointShift = { 2, // MOVETO 2, // LINETO 4, // QUADTO diff --git a/src/main/java/pythagoras/d/Points.java b/src/main/java/pythagoras/d/Points.java index 70dddd2..b813d11 100644 --- a/src/main/java/pythagoras/d/Points.java +++ b/src/main/java/pythagoras/d/Points.java @@ -10,7 +10,7 @@ package pythagoras.d; public class Points { /** - * Returns the squared Euclidian distance between the specified two points. + * Returns the squared Euclidean distance between the specified two points. */ public static double distanceSq (double x1, double y1, double x2, double y2) { x2 -= x1; @@ -19,7 +19,7 @@ public class Points } /** - * Returns the Euclidian distance between the specified two points. + * Returns the Euclidean distance between the specified two points. */ public static double distance (double x1, double y1, double x2, double y2) { return Math.sqrt(distanceSq(x1, y1, x2, y2)); diff --git a/src/main/java/pythagoras/f/AbstractArc.java b/src/main/java/pythagoras/f/AbstractArc.java index 798ab84..5425204 100644 --- a/src/main/java/pythagoras/f/AbstractArc.java +++ b/src/main/java/pythagoras/f/AbstractArc.java @@ -225,7 +225,7 @@ public abstract class AbstractArc extends RectangularShape implements IArc /** The path iterator transformation */ private AffineTransform t; - /** The current segmenet index */ + /** The current segment index */ private int index; /** The number of arc segments the source arc subdivided to be approximated by Bezier @@ -238,19 +238,19 @@ public abstract class AbstractArc extends RectangularShape implements IArc /** The step to calculate next arc subdivision point */ private float step; - /** The tempopary value of cosinus of the current angle */ + /** The temporary value of cosinus of the current angle */ private float cos; - /** The tempopary value of sinus of the current angle */ + /** The temporary value of sinus of the current angle */ private float sin; /** The coefficient to calculate control points of Bezier curves */ private float k; - /** The tempopary value of x coordinate of the Bezier curve control vector */ + /** The temporary value of x coordinate of the Bezier curve control vector */ private float kx; - /** The tempopary value of y coordinate of the Bezier curve control vector */ + /** The temporary value of y coordinate of the Bezier curve control vector */ private float ky; /** The x coordinate of the first path point (MOVE_TO) */ diff --git a/src/main/java/pythagoras/f/AbstractRectangle.java b/src/main/java/pythagoras/f/AbstractRectangle.java index b70231b..4eaa6b3 100644 --- a/src/main/java/pythagoras/f/AbstractRectangle.java +++ b/src/main/java/pythagoras/f/AbstractRectangle.java @@ -167,7 +167,7 @@ public abstract class AbstractRectangle extends RectangularShape implements IRec private float x, y, width, height; private AffineTransform t; - /** The current segmenet index. */ + /** The current segment index. */ private int index; Iterator (IRectangle r, AffineTransform at) { diff --git a/src/main/java/pythagoras/f/Area.java b/src/main/java/pythagoras/f/Area.java index b02a909..7cfd93e 100644 --- a/src/main/java/pythagoras/f/Area.java +++ b/src/main/java/pythagoras/f/Area.java @@ -1236,7 +1236,7 @@ public class Area implements IShape, Cloneable /** offsets[i] - index in array of coords and i - index in array of rules. */ private int[] offsets = new int[10]; - /** The quantity of MOVETO rule occurences. */ + /** The quantity of MOVETO rule occurrences. */ private int moveToCount = 0; /** True if the shape is polygonal. */ diff --git a/src/main/java/pythagoras/f/Path.java b/src/main/java/pythagoras/f/Path.java index 63f20c2..28ced8c 100644 --- a/src/main/java/pythagoras/f/Path.java +++ b/src/main/java/pythagoras/f/Path.java @@ -359,7 +359,7 @@ public final class Path implements IShape, Cloneable /* The path rule. */ protected int rule; - /** The space required in points buffer for different segmenet types. */ + /** The space required in points buffer for different segment types. */ protected static int[] pointShift = { 2, // MOVETO 2, // LINETO 4, // QUADTO diff --git a/src/main/java/pythagoras/f/Points.java b/src/main/java/pythagoras/f/Points.java index 6d295f5..e393ae4 100644 --- a/src/main/java/pythagoras/f/Points.java +++ b/src/main/java/pythagoras/f/Points.java @@ -10,7 +10,7 @@ package pythagoras.f; public class Points { /** - * Returns the squared Euclidian distance between the specified two points. + * Returns the squared Euclidean distance between the specified two points. */ public static float distanceSq (float x1, float y1, float x2, float y2) { x2 -= x1; @@ -19,7 +19,7 @@ public class Points } /** - * Returns the Euclidian distance between the specified two points. + * Returns the Euclidean distance between the specified two points. */ public static float distance (float x1, float y1, float x2, float y2) { return (float)Math.sqrt(distanceSq(x1, y1, x2, y2));