Skip to content

Commit

Permalink
Rename path_ops into path64.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Oct 21, 2020
1 parent b8cb6dc commit eeb2572
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -23,7 +23,6 @@
mod alpha_runs;
mod blend_mode;
mod blitter;
mod rect;
mod canvas;
mod color;
mod edge;
Expand All @@ -36,12 +35,13 @@ mod int_size;
mod line_clipper;
mod math;
mod painter;
mod path64;
mod path;
mod path_builder;
mod path_geometry;
mod path_ops;
mod pipeline;
mod pixmap;
mod rect;
mod scalar;
mod scan;
mod screen_int_rect;
Expand Down
File renamed without changes.
Expand Up @@ -70,9 +70,9 @@ For horizontal lines:
e t^3 + 3 f t^3 - 3 g t^3 + h t^3
*/

use crate::path_ops::cubic64::{self, Cubic64};
use crate::path_ops::Scalar64;
use crate::path_ops::point64::SearchAxis;
use super::Scalar64;
use super::cubic64::{self, Cubic64};
use super::point64::SearchAxis;

pub fn horizontal_intersect(cubic: &Cubic64, axis_intercept: f64, roots: &mut [f64; 3]) -> usize {
let (a, b, c, mut d) = cubic64::coefficients(&cubic.as_f64_slice()[1..]);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/path_geometry.rs
Expand Up @@ -1088,7 +1088,7 @@ pub fn chop_mono_cubic_at_y(src: &[Point; 4], y: f32, dst: &mut [Point; 7]) -> b
}

fn cubic_dchop_at_intercept(src: &[Point; 4], intercept: f32, is_vertical: bool, dst: &mut [Point; 7]) -> bool {
use crate::path_ops::{cubic64::Cubic64, point64::Point64, line_cubic_intersections};
use crate::path64::{cubic64::Cubic64, point64::Point64, line_cubic_intersections};

let src = [
Point64::from_point(src[0]),
Expand Down

0 comments on commit eeb2572

Please sign in to comment.