Skip to content

Commit 0c9dd87

Browse files
committed
chore: add a missing function.
1 parent 17d1200 commit 0c9dd87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mago-common/src/main/java/com/gaia3d/util/GeometryUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public static GaiaRectangle getTexCoordsBoundingRectangle(List<GaiaVertex> verti
3838
return boundingRectangle;
3939
}
4040

41+
public static double cosineBetweenUnitaryVectors(double ax, double ay, double az, double bx, double by, double bz) {
42+
return ax * bx + ay * by + az * bz;
43+
}
44+
4145
public static GaiaRectangle getTexCoordsBoundingRectangleOfFaces(List<GaiaFace> faces, List<GaiaVertex> vertices, GaiaRectangle boundingRectangle) {
4246
if (boundingRectangle == null) {
4347
boundingRectangle = new GaiaRectangle();

0 commit comments

Comments
 (0)