library: replace super::super
by crate
import
Done with the following shell command: `sed -e 's/super::super/crate/' -i $(git grep -l super::super)`. Followed by a `cargo fmt --all`.
This commit is contained in:
parent
4f3af74c22
commit
7112873715
|
@ -1,5 +1,5 @@
|
||||||
use super::super::{Point, Vector};
|
|
||||||
use super::film::Film;
|
use super::film::Film;
|
||||||
|
use crate::{Point, Vector};
|
||||||
|
|
||||||
/// Represent an abstract camera to observe the scene.
|
/// Represent an abstract camera to observe the scene.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use super::super::{Point, Vector};
|
use crate::{Point, Vector};
|
||||||
|
|
||||||
/// Represent an abstract camera film, to know where each pixel is in space.
|
/// Represent an abstract camera film, to know where each pixel is in space.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::core::LinearColor;
|
|
||||||
use super::super::Point;
|
|
||||||
use super::Light;
|
use super::Light;
|
||||||
|
use crate::core::LinearColor;
|
||||||
|
use crate::Point;
|
||||||
|
|
||||||
/// Represent an ambient lighting which is equal in all points of the scene.
|
/// Represent an ambient lighting which is equal in all points of the scene.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::core::LinearColor;
|
|
||||||
use super::super::{Point, Vector};
|
|
||||||
use super::{Light, SpatialLight};
|
use super::{Light, SpatialLight};
|
||||||
|
use crate::core::LinearColor;
|
||||||
|
use crate::{Point, Vector};
|
||||||
|
|
||||||
/// Represent a light emanating from a far away source, with parallel rays on all points.
|
/// Represent a light emanating from a far away source, with parallel rays on all points.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::core::LinearColor;
|
|
||||||
use super::super::{Point, Vector};
|
|
||||||
use super::{Light, SpatialLight};
|
use super::{Light, SpatialLight};
|
||||||
|
use crate::core::LinearColor;
|
||||||
|
use crate::{Point, Vector};
|
||||||
|
|
||||||
/// Represent a light emanating from a point in space, following the square distance law.
|
/// Represent a light emanating from a point in space, following the square distance law.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::core::LinearColor;
|
|
||||||
use super::super::{Point, Vector};
|
|
||||||
use super::{Light, SpatialLight};
|
use super::{Light, SpatialLight};
|
||||||
|
use crate::core::LinearColor;
|
||||||
|
use crate::{Point, Vector};
|
||||||
|
|
||||||
/// Represent a light emanating from a directed light-source, outputting rays in a cone.
|
/// Represent a light emanating from a directed light-source, outputting rays in a cone.
|
||||||
/// The illumination cone cannot have an FOV over 180°.
|
/// The illumination cone cannot have an FOV over 180°.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::core::color::LinearColor;
|
|
||||||
use super::super::Point2D;
|
|
||||||
use super::Material;
|
use super::Material;
|
||||||
|
use crate::core::color::LinearColor;
|
||||||
|
use crate::Point2D;
|
||||||
|
|
||||||
/// A material with the same characteristics on all points.
|
/// A material with the same characteristics on all points.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::material::Material;
|
use crate::material::Material;
|
||||||
use super::super::shape::Shape;
|
use crate::shape::Shape;
|
||||||
use super::super::texture::Texture;
|
use crate::texture::Texture;
|
||||||
|
|
||||||
/// An object being rendered in the scene.
|
/// An object being rendered in the scene.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use super::super::{Point, Point2D, Vector};
|
|
||||||
use super::Shape;
|
use super::Shape;
|
||||||
|
use crate::{Point, Point2D, Vector};
|
||||||
use bvh::aabb::{Bounded, AABB};
|
use bvh::aabb::{Bounded, AABB};
|
||||||
use bvh::ray::Ray;
|
use bvh::ray::Ray;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use super::super::{Point, Point2D, Vector};
|
|
||||||
use super::Shape;
|
use super::Shape;
|
||||||
|
use crate::{Point, Point2D, Vector};
|
||||||
use bvh::aabb::{Bounded, AABB};
|
use bvh::aabb::{Bounded, AABB};
|
||||||
use bvh::ray::Ray;
|
use bvh::ray::Ray;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use super::super::core::LinearColor;
|
|
||||||
use super::super::Point2D;
|
|
||||||
use super::Texture;
|
use super::Texture;
|
||||||
|
use crate::core::LinearColor;
|
||||||
|
use crate::Point2D;
|
||||||
|
|
||||||
/// A texture with the same color on all points.
|
/// A texture with the same color on all points.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
|
Loading…
Reference in a new issue