org.stellarium.projector
Class SphericMirrorCalculator
java.lang.Object
org.stellarium.projector.SphericMirrorCalculator
-
public class SphericMirrorCalculator
- extends java.lang.Object
Original Comments:
This code slow and ugly and I know it. Yet it might be useful for playing around.
- Version:
- 0.8.2
- Author:
- Jerome Beau
Field Summary |
private double |
cosAlpha
|
private javax.vecmath.Vector3d
|
domeCenter
|
private double |
domeRadius
|
private double |
lP
|
private javax.vecmath.Vector3d
|
p
|
private javax.vecmath.Vector3d
|
P
projector
|
private double |
pp
|
private double |
sinAlpha
|
private double |
zoomFactor
|
Method Summary |
private
static javax.vecmath.Vector3d |
calcVectorPolynome(javax.vecmath.Vector3d v0,
javax.vecmath.Vector3d v1, double scalar1)
|
private
static javax.vecmath.Vector3d |
calcVectorPolynome(javax.vecmath.Vector3d v0,
javax.vecmath.Vector3d v1, double scalar1, javax.vecmath.Vector3d v2, double scalar2)
|
void |
init(IniFileParser conf)
|
boolean |
retransform(double x,
double y, javax.vecmath.Point3d v)
|
boolean |
retransform(double x,
double y, javax.vecmath.Vector3d v, javax.vecmath.Vector3d vX,
javax.vecmath.Vector3d vY)
|
void |
setParams(javax.vecmath.Vector3d projectorPosition,
javax.vecmath.Vector3d mirrorPosition, double mirror_radius, double dome_radius, double zenith_y,
double scaling_factor)
|
boolean |
transform(javax.vecmath.Point3d v,
javax.vecmath.Point3d result)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
P
private javax.vecmath.Vector3d P
- projector
domeCenter
private javax.vecmath.Vector3d domeCenter
domeRadius
private double domeRadius
pp
private double pp
lP
private double lP
p
private javax.vecmath.Vector3d p
cosAlpha
private double cosAlpha
sinAlpha
private double sinAlpha
zoomFactor
private double zoomFactor
SphericMirrorCalculator
public SphericMirrorCalculator()
init
public void init(IniFileParser conf)
-
setParams
public void setParams(javax.vecmath.Vector3d projectorPosition,
javax.vecmath.Vector3d mirrorPosition,
double mirror_radius,
double dome_radius,
double zenith_y,
double scaling_factor)
-
transform
public boolean transform(javax.vecmath.Point3d v,
javax.vecmath.Point3d result)
-
retransform
public boolean retransform(double x,
double y,
javax.vecmath.Point3d v)
-
retransform
public boolean retransform(double x,
double y,
javax.vecmath.Vector3d v,
javax.vecmath.Vector3d vX,
javax.vecmath.Vector3d vY)
-
calcVectorPolynome
private static javax.vecmath.Vector3d calcVectorPolynome(javax.vecmath.Vector3d v0,
javax.vecmath.Vector3d v1,
double scalar1,
javax.vecmath.Vector3d v2,
double scalar2)
-
calcVectorPolynome
private static javax.vecmath.Vector3d calcVectorPolynome(javax.vecmath.Vector3d v0,
javax.vecmath.Vector3d v1,
double scalar1)
-