56 return cameraProjection;
62 m_iniSolverIters = init;
63 m_optSolverIters = opt;
99 float ellipseMinorAxis;
100 float ellipseMajorAxis;
110 int m_iniSolverIters;
111 int m_optSolverIters;
113 std::map<float, std::map<float, Vector2> > m_requestedUVs;
128 float SphereRadiusSqrd,
129 bool frontSide =
true)
131 Vector3 L = spherePos - Origin;
133 return (offsetFromSphereCenterToRay.
sqrMagnitude() <= SphereRadiusSqrd)
135 (sqrt(SphereRadiusSqrd -
137 (frontSide ? 1.f : -1.f))
146 if (denom > 1.4e-45f) {
float m02
Definition: utility_northstar.h:683
const Vector4 GetCameraProjection()
Definition: deformation_northstar.h:54
float x
Definition: utility_northstar.h:277
Matrix4x4 ComposeProjection()
Definition: utility_northstar.h:733
Definition: utility_northstar.h:368
float Magnitude()
Definition: utility_northstar.h:186
static float Dot(Vector3 lhs, Vector3 rhs)
Definition: utility_northstar.h:151
Distortion information about an eye parsed from the configuration file.
Definition: ns_hmd.h:99
void ViewportPointToRayDirection(Vector2 UV, Vector3 cameraPosition, Matrix4x4 clipToWorld, Vector3 &out)
Definition: deformation_northstar.h:81
void UpdateClipToWorld(Matrix4x4 eyeRotationMatrix)
Definition: deformation_northstar.h:67
Definition: utility_northstar.h:283
void setiters(int init, int opt)
Definition: deformation_northstar.h:60
float x
Definition: utility_northstar.h:364
void UpdateEyePosition(const Vector3 pos)
Definition: deformation_northstar.h:46
Vector3 GetEyePosition()
Definition: deformation_northstar.h:23
void RegenerateMesh()
Definition: deformation_northstar.cpp:86
float m22
Definition: utility_northstar.h:693
Vector3 eyePosition
Definition: deformation_northstar.h:78
float sqrMagnitude()
Definition: utility_northstar.h:180
Definition: utility_northstar.h:703
Vector3 MultiplyPoint(Vector3 point)
Definition: utility_northstar.h:551
Vector2 RenderUVToDisplayUV(Vector3 inputUV)
Definition: deformation_northstar.cpp:121
float y
Definition: utility_northstar.h:278
float m12
Definition: utility_northstar.h:688
Vector2 SolveDisplayUVToRenderUV(Vector2 inputUV, Vector2 initailGuess, int iterations)
Definition: deformation_northstar.cpp:191
static Matrix4x4 Translate(Vector3 vector)
Definition: utility_northstar.h:569
Matrix4x4 Inverse()
Definition: utility_northstar.h:635
float y
Definition: utility_northstar.h:365
OpticalSystem()
Definition: deformation_northstar.h:15
Definition: utility_northstar.h:16
float z
Definition: utility_northstar.h:279
Vector2 DisplayUVToRenderUVPreviousSeed(Vector2 inputUV)
Definition: deformation_northstar.cpp:239
static Vector3 Zero()
Definition: utility_northstar.h:192
Definition: deformation_northstar.h:12
void LoadOpticalData(struct ns_eye *eye)
Definition: deformation_northstar.cpp:23