Replace calculation with function call (#11077)
# Objective - Simplify execution. ## Solution - Replace degrees to radians calculation with function call.
This commit is contained in:
parent
efb4fa5d61
commit
22acd62dbf
@ -210,8 +210,7 @@ pub unsafe fn genTangSpace<I: Geometry>(geometry: &mut I, fAngularThreshold: f32
|
|||||||
let mut index = 0;
|
let mut index = 0;
|
||||||
let iNrFaces = geometry.num_faces();
|
let iNrFaces = geometry.num_faces();
|
||||||
let mut bRes: bool = false;
|
let mut bRes: bool = false;
|
||||||
let fThresCos: f32 =
|
let fThresCos = fAngularThreshold.to_radians().cos();
|
||||||
((fAngularThreshold * 3.14159265358979323846f64 as f32 / 180.0f32) as f64).cos() as f32;
|
|
||||||
f = 0;
|
f = 0;
|
||||||
while f < iNrFaces {
|
while f < iNrFaces {
|
||||||
let verts = geometry.num_vertices_of_face(f);
|
let verts = geometry.num_vertices_of_face(f);
|
||||||
|
Loading…
Reference in New Issue
Block a user