public class org.apache.commons.math.geometry.euclidean.threed.Line extends java.lang.Object implements org.apache.commons.math.geometry.partitioning.Embedding
{
private org.apache.commons.math.geometry.euclidean.threed.Vector3D direction;
private org.apache.commons.math.geometry.euclidean.threed.Vector3D zero;
public void <init>(org.apache.commons.math.geometry.euclidean.threed.Vector3D, org.apache.commons.math.geometry.euclidean.threed.Vector3D) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
specialinvoke v.<java.lang.Object: void <init>()>();
virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: void reset(org.apache.commons.math.geometry.euclidean.threed.Vector3D,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v, v);
return;
}
public void <init>(org.apache.commons.math.geometry.euclidean.threed.Line)
{
org.apache.commons.math.geometry.euclidean.threed.Line v, v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Line;
specialinvoke v.<java.lang.Object: void <init>()>();
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction> = v;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero> = v;
return;
}
public void reset(org.apache.commons.math.geometry.euclidean.threed.Vector3D, org.apache.commons.math.geometry.euclidean.threed.Vector3D) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
java.lang.Object[] v;
byte v;
double v, v, v, v, v, v;
org.apache.commons.math.exception.MathIllegalArgumentException v;
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v, v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D subtract(org.apache.commons.math.geometry.Vector)>(v);
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double getNormSq()>();
v = v cmpl 0.0;
if v != 0 goto label;
v = new org.apache.commons.math.exception.MathIllegalArgumentException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats ZERO_NORM>;
v = newarray (java.lang.Object)[0];
specialinvoke v.<org.apache.commons.math.exception.MathIllegalArgumentException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
v = new org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = staticinvoke <org.apache.commons.math.util.FastMath: double sqrt(double)>(v);
v = 1.0 / v;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: void <init>(double,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v, v);
v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction> = v;
v = new org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
v = neg v;
v = v / v;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: void <init>(double,org.apache.commons.math.geometry.euclidean.threed.Vector3D,double,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(1.0, v, v, v);
v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero> = v;
return;
}
public org.apache.commons.math.geometry.euclidean.threed.Line revert()
{
org.apache.commons.math.geometry.euclidean.threed.Line v, v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v = new org.apache.commons.math.geometry.euclidean.threed.Line;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: void <init>(org.apache.commons.math.geometry.euclidean.threed.Line)>(v);
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D negate()>();
v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction> = v;
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.Vector3D getDirection()
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.Vector3D getOrigin()
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
return v;
}
public double getAbscissa(org.apache.commons.math.geometry.euclidean.threed.Vector3D)
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v, v;
double v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D subtract(org.apache.commons.math.geometry.Vector)>(v);
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.Vector3D pointAt(double)
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v;
double v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: double;
v = new org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: void <init>(double,org.apache.commons.math.geometry.euclidean.threed.Vector3D,double,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(1.0, v, v, v);
return v;
}
public org.apache.commons.math.geometry.euclidean.oned.Vector1D toSubSpace(org.apache.commons.math.geometry.Vector)
{
org.apache.commons.math.geometry.Vector v;
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.oned.Vector1D v;
double v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.Vector;
v = new org.apache.commons.math.geometry.euclidean.oned.Vector1D;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: double getAbscissa(org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v);
specialinvoke v.<org.apache.commons.math.geometry.euclidean.oned.Vector1D: void <init>(double)>(v);
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.Vector3D toSpace(org.apache.commons.math.geometry.Vector)
{
org.apache.commons.math.geometry.Vector v;
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v;
double v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.Vector;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.oned.Vector1D: double getX()>();
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D pointAt(double)>(v);
return v;
}
public boolean isSimilarTo(org.apache.commons.math.geometry.euclidean.threed.Line)
{
org.apache.commons.math.geometry.euclidean.threed.Line v, v;
byte v, v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v;
boolean v, v;
double v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Line;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = staticinvoke <org.apache.commons.math.geometry.euclidean.threed.Vector3D: double angle(org.apache.commons.math.geometry.euclidean.threed.Vector3D,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v, v);
v = v cmpg 1.0E-10;
if v < 0 goto label;
v = v cmpl 3.141592653489793;
if v <= 0 goto label;
label:
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: boolean contains(org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v);
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public boolean contains(org.apache.commons.math.geometry.euclidean.threed.Vector3D)
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
byte v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v;
boolean v;
double v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: double distance(org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v);
v = v cmpg 1.0E-10;
if v >= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public double distance(org.apache.commons.math.geometry.euclidean.threed.Vector3D)
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v, v, v, v;
double v, v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D subtract(org.apache.commons.math.geometry.Vector)>(v);
v = new org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
v = neg v;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: void <init>(double,org.apache.commons.math.geometry.euclidean.threed.Vector3D,double,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(1.0, v, v, v);
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double getNorm()>();
return v;
}
public double distance(org.apache.commons.math.geometry.euclidean.threed.Line)
{
byte v;
double v, v, v, v, v, v;
org.apache.commons.math.geometry.euclidean.threed.Line v, v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v, v, v, v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Line;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = staticinvoke <org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D crossProduct(org.apache.commons.math.geometry.euclidean.threed.Vector3D,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v, v);
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double getNorm()>();
v = <org.apache.commons.math.util.Precision: double SAFE_MIN>;
v = v cmpg v;
if v >= 0 goto label;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: double distance(org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v);
return v;
label:
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D subtract(org.apache.commons.math.geometry.Vector)>(v);
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
v = v / v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double abs(double)>(v);
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.Vector3D closestPoint(org.apache.commons.math.geometry.euclidean.threed.Line)
{
byte v;
double v, v, v, v, v, v, v, v, v;
org.apache.commons.math.geometry.euclidean.threed.Line v, v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Line;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
v = v * v;
v = 1.0 - v;
v = <org.apache.commons.math.util.Precision: double EPSILON>;
v = v cmpg v;
if v >= 0 goto label;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
return v;
label:
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: org.apache.commons.math.geometry.euclidean.threed.Vector3D subtract(org.apache.commons.math.geometry.Vector)>(v);
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: double dotProduct(org.apache.commons.math.geometry.Vector)>(v);
v = new org.apache.commons.math.geometry.euclidean.threed.Vector3D;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D zero>;
v = v * v;
v = v - v;
v = v / v;
v = v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D direction>;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Vector3D: void <init>(double,org.apache.commons.math.geometry.euclidean.threed.Vector3D,double,org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(1.0, v, v, v);
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.Vector3D intersection(org.apache.commons.math.geometry.euclidean.threed.Line)
{
org.apache.commons.math.geometry.euclidean.threed.Line v, v;
org.apache.commons.math.geometry.euclidean.threed.Vector3D v, v;
boolean v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v := @parameter: org.apache.commons.math.geometry.euclidean.threed.Line;
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: org.apache.commons.math.geometry.euclidean.threed.Vector3D closestPoint(org.apache.commons.math.geometry.euclidean.threed.Line)>(v);
v = virtualinvoke v.<org.apache.commons.math.geometry.euclidean.threed.Line: boolean contains(org.apache.commons.math.geometry.euclidean.threed.Vector3D)>(v);
if v == 0 goto label;
v = v;
goto label;
label:
v = null;
label:
return v;
}
public org.apache.commons.math.geometry.euclidean.threed.SubLine wholeLine()
{
org.apache.commons.math.geometry.euclidean.threed.Line v;
org.apache.commons.math.geometry.euclidean.threed.SubLine v;
org.apache.commons.math.geometry.euclidean.oned.IntervalsSet v;
v := @this: org.apache.commons.math.geometry.euclidean.threed.Line;
v = new org.apache.commons.math.geometry.euclidean.threed.SubLine;
v = new org.apache.commons.math.geometry.euclidean.oned.IntervalsSet;
specialinvoke v.<org.apache.commons.math.geometry.euclidean.oned.IntervalsSet: void <init>()>();
specialinvoke v.<org.apache.commons.math.geometry.euclidean.threed.SubLine: void <init>(org.apache.commons.math.geometry.euclidean.threed.Line,org.apache.commons.math.geometry.euclidean.oned.IntervalsSet)>(v, v);
return v;
}
}