update comments
This commit is contained in:
parent
c692c7c3a2
commit
4459365d65
@ -94,7 +94,7 @@ lazy_static::lazy_static! {
|
|||||||
|
|
||||||
debug_log(&format!("Loading file: {}", path_string));
|
debug_log(&format!("Loading file: {}", path_string));
|
||||||
|
|
||||||
// Match the filename
|
// Match the file extention
|
||||||
if path_string.ends_with(".ttf") {
|
if path_string.ends_with(".ttf") {
|
||||||
// Parse font files
|
// Parse font files
|
||||||
let font_data = FontData::from_owned(data);
|
let font_data = FontData::from_owned(data);
|
||||||
|
|||||||
@ -146,7 +146,6 @@ pub fn newtons_method(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if last_ele_signum != ele_signum {
|
if last_ele_signum != ele_signum {
|
||||||
// Do 50 iterations of newton's method, should be more than accurate
|
|
||||||
let x = {
|
let x = {
|
||||||
let mut x1: f64 = last_ele.unwrap().x;
|
let mut x1: f64 = last_ele.unwrap().x;
|
||||||
let mut x2: f64;
|
let mut x2: f64;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user