Skip to content

Commit e94ad07

Browse files
committed
Use regular LinAlg cross product
1 parent 03012dd commit e94ad07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/UnitSpherical/cap.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ end
113113

114114
function circumcenter_on_unit_sphere(a::UnitSphericalPoint, b::UnitSphericalPoint, c::UnitSphericalPoint)
115115
LinearAlgebra.normalize(
116-
robust_cross_product(a, b) +
117-
robust_cross_product(b, c) +
118-
robust_cross_product(c, a)
116+
LinearAlgebra.cross(a, b) +
117+
LinearAlgebra.cross(b, c) +
118+
LinearAlgebra.cross(c, a)
119119
)
120120
end
121121

@@ -128,7 +128,7 @@ end
128128

129129
function _is_ccw_unit_sphere(v_0::S, v_c::S, v_i::S) where S <: UnitSphericalPoint
130130
# checks if the smaller interior angle for the great circles connecting u-v and v-w is CCW
131-
return(LinearAlgebra.dot(robust_cross_product(v_c - v_0, v_i - v_c), v_i) < 0)
131+
return(LinearAlgebra.dot(LinearAlgebra.cross(v_c - v_0, v_i - v_c), v_i) < 0)
132132
end
133133

134134
function angle_between(a::S, b::S, c::S) where S <: UnitSphericalPoint

0 commit comments

Comments
 (0)