Commit 1c34a83f authored by Riegel's avatar Riegel
Browse files

Adjusted documentation

parent 359d9703
......@@ -40,8 +40,9 @@ public class GmPlane {
UnitVector3d r = UnitVector3d.of(n.getZ(), n.getX(), n.getY());
r2 = n.cross(r).toUnitVector();
// r1 ist nicht in allen Faellen rechtwinklig zur Flaechennormalen
// daher nochmal eine neu Berechnung;
// r is not always perpendicular to the plane's normal vector,
// recalculate using r2
// ----------------------------------------------------------------
r1 = n.cross(r2).toUnitVector();
......
......@@ -18,11 +18,13 @@
*/
package de.hft.stuttgart.citydoctor2.edge;
public class GmStraight2d {
private final Point2d origin;
private final UnitVector2d direction;
public GmStraight2d(Point2d org, UnitVector2d dir) {
this.direction = dir;
this.origin = org;
......@@ -39,14 +41,13 @@ public class GmStraight2d {
}
/**
* Just intersects two GmStraights2d.
*
* Intersects this straight with another straight.
* <br>
* <br>
* If the two straights are parallel the method will return false, so the user
* has to determine, if the straight are just parallel or identical
* If the two straights are parallel, areParallel in the returned IntersectionResult will be true.
* This method will not differentiate between parallel and identical straights.
*
* @param other First Straight
* @param other the other straight
*
* @return intersection result
*/
......
......@@ -239,7 +239,7 @@ public class IntersectPlanarPolygons {
GmBoundedStraight heStraight = e.getStraight();
// Straights are colinear; checked in the handleEmdeddedEdges method
if (heStraight.isColinear(intersectingStraight, angleEpsilon, epsilon)) {
if (heStraight.isCollinear(intersectingStraight, angleEpsilon, epsilon)) {
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment