mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
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
1 changed files with 1 additions and 2 deletions
|
@ -210,8 +210,7 @@ pub unsafe fn genTangSpace<I: Geometry>(geometry: &mut I, fAngularThreshold: f32
|
|||
let mut index = 0;
|
||||
let iNrFaces = geometry.num_faces();
|
||||
let mut bRes: bool = false;
|
||||
let fThresCos: f32 =
|
||||
((fAngularThreshold * 3.14159265358979323846f64 as f32 / 180.0f32) as f64).cos() as f32;
|
||||
let fThresCos = fAngularThreshold.to_radians().cos();
|
||||
f = 0;
|
||||
while f < iNrFaces {
|
||||
let verts = geometry.num_vertices_of_face(f);
|
||||
|
|
Loading…
Reference in a new issue