1+ """Common methods for eye modelling."""
2+
13from __future__ import annotations
24
35import logging
911
1012
1113def getTranslationMatrix (x : float , y : float , z : float ) -> np .ndarray :
12- """
13- Generate a translation matrix for 3D transformations.
14+ """Generate a translation matrix for 3D transformations.
1415
1516 Parameters
1617 ----------
@@ -30,8 +31,7 @@ def getTranslationMatrix(x: float, y: float, z: float) -> np.ndarray:
3031
3132
3233def toRadians (angleDegrees : float ) -> float :
33- """
34- Convert an angle from degrees to radians.
34+ """Convert an angle from degrees to radians.
3535
3636 Parameters
3737 ----------
@@ -47,8 +47,7 @@ def toRadians(angleDegrees: float) -> float:
4747
4848
4949def toDegrees (angleRadians : float ) -> float :
50- """
51- Convert an angle from radians to degrees.
50+ """Convert an angle from radians to degrees.
5251
5352 Parameters
5453 ----------
@@ -64,8 +63,7 @@ def toDegrees(angleRadians: float) -> float:
6463
6564
6665def getIdentityMatrix () -> np .ndarray :
67- """
68- Returns a 4x4 identity matrix.
66+ """Returns a 4x4 identity matrix.
6967
7068 Returns
7169 -------
@@ -76,8 +74,7 @@ def getIdentityMatrix() -> np.ndarray:
7674
7775
7876def getRotationMatrixX (angleDeg : float ) -> np .ndarray :
79- """
80- Calculate the rotation matrix for a rotation around the X-axis.
77+ """Calculate the rotation matrix for a rotation around the X-axis.
8178
8279 Parameters
8380 ----------
@@ -96,8 +93,7 @@ def getRotationMatrixX(angleDeg: float) -> np.ndarray:
9693
9794
9895def getRotationMatrixY (angleDeg : float ) -> np .ndarray :
99- """
100- Generate a rotation matrix for a rotation around the Y-axis.
96+ """Generate a rotation matrix for a rotation around the Y-axis.
10197
10298 Parameters
10399 ----------
@@ -116,8 +112,7 @@ def getRotationMatrixY(angleDeg: float) -> np.ndarray:
116112
117113
118114def getRotationMatrixZ (angleDeg : float ) -> np .ndarray :
119- """
120- Generate a rotation matrix for a rotation around the Z-axis.
115+ """Generate a rotation matrix for a rotation around the Z-axis.
121116
122117 Parameters
123118 ----------
@@ -136,8 +131,7 @@ def getRotationMatrixZ(angleDeg: float) -> np.ndarray:
136131
137132
138133def getEyeModelGeometry (eyeModel : object , structureType : str ) -> object :
139- """
140- Retrieve the geometry for a specific structure type from the eye model.
134+ """Retrieve the geometry for a specific structure type from the eye model.
141135
142136 Parameters
143137 ----------
@@ -161,8 +155,7 @@ def getEyeModelGeometry(eyeModel: object, structureType: str) -> object:
161155
162156
163157def getClipGeometries (eyeModel : object ) -> list :
164- """
165- Retrieve all clip geometries from the eye model.
158+ """Retrieve all clip geometries from the eye model.
166159
167160 Parameters
168161 ----------
@@ -178,8 +171,7 @@ def getClipGeometries(eyeModel: object) -> list:
178171
179172
180173def getEyeModelToPatientRotationMatrix (rotationXDeg : float , rotationYDeg : float , rotationZDeg : float ) -> np .ndarray :
181- """
182- Calculate the rotation matrix to transform from eye model coordinates to patient coordinates.
174+ """Calculate the rotation matrix to transform from eye model coordinates to patient coordinates.
183175
184176 Parameters
185177 ----------
0 commit comments