mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 06:38:12 +08:00
Rename vector components to match new terminology (#719)
* Renamed VectorAnchor, VectorShape and VectorControlPoint. Also fixed other naming inconsistencies. * Renamed messages relating to vector and updated naming in several tools * Renamed comments + caught a few areas I had missed. * Caught a few more incorrect names * Code review pass * Review changes * Fixed warning * Additional review feedback Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Keavon Chambers
parent
5d1d93917d
commit
03633bf313
@@ -1,6 +1,6 @@
|
||||
use crate::boolean_ops::{split_path_seg, subdivide_path_seg};
|
||||
use crate::consts::{F64LOOSE, F64PRECISE};
|
||||
use crate::layers::vector::vector_shape::VectorShape;
|
||||
use crate::layers::vector::subpath::Subpath;
|
||||
|
||||
use glam::{DAffine2, DMat2, DVec2};
|
||||
use kurbo::{BezPath, CubicBez, Line, ParamCurve, ParamCurveDeriv, ParamCurveExtrema, PathSeg, Point, QuadBez, Rect, Shape, Vec2};
|
||||
@@ -39,9 +39,9 @@ impl Quad {
|
||||
path
|
||||
}
|
||||
|
||||
/// Generates a [VectorShape] of the quad
|
||||
pub fn vector_shape(&self) -> VectorShape {
|
||||
VectorShape::from_points(self.0.into_iter(), true)
|
||||
/// Generates a [subpath] of the quad
|
||||
pub fn subpath(&self) -> Subpath {
|
||||
Subpath::from_points(self.0.into_iter(), true)
|
||||
}
|
||||
|
||||
/// Generates the axis aligned bounding box of the quad
|
||||
|
||||
Reference in New Issue
Block a user