Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize copyright headers. #245

Merged
merged 1 commit into from
Mar 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions benches/cubic_arclen.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Benchmarks of cubic arclength approaches.

#![cfg(nightly)]
Expand Down
3 changes: 3 additions & 0 deletions benches/quad_arclen.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Benchmarks of quadratic arclength approaches.

// TODO: organize so there's less cut'n'paste from arclen_accuracy example.
Expand Down
3 changes: 3 additions & 0 deletions benches/rect_expand.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2020 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

#![cfg(nightly)]
#![feature(test)]
extern crate test;
Expand Down
3 changes: 3 additions & 0 deletions examples/arclen_accuracy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A test program to plot the error of arclength approximation.

// Lots of stuff is commented out or was just something to try.
Expand Down
3 changes: 3 additions & 0 deletions examples/circle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Example of circle

use kurbo::{Circle, Shape};
Expand Down
3 changes: 3 additions & 0 deletions examples/cubic_arclen.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Research testbed for arclengths of cubic Bézier segments.

// Lots of stuff is commented out or was just something to try.
Expand Down
3 changes: 3 additions & 0 deletions examples/ellipse.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2020 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Example of ellipse

use kurbo::{Ellipse, Shape};
Expand Down
3 changes: 3 additions & 0 deletions src/affine.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Affine transforms.

use std::ops::{Mul, MulAssign};
Expand Down
3 changes: 3 additions & 0 deletions src/arc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! An ellipse arc.

use crate::{PathEl, Point, Rect, Shape, Vec2};
Expand Down
3 changes: 3 additions & 0 deletions src/bezpath.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Bézier paths (up to cubic).

#![allow(clippy::many_single_char_names)]
Expand Down
3 changes: 3 additions & 0 deletions src/circle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Implementation of circle shape.

use std::{
Expand Down
3 changes: 3 additions & 0 deletions src/common.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Common mathematical operations

#![allow(missing_docs)]
Expand Down
3 changes: 3 additions & 0 deletions src/cubicbez.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Cubic Bézier segments.

use std::ops::{Mul, Range};
Expand Down
3 changes: 3 additions & 0 deletions src/ellipse.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2020 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Implementation of ellipse shape.

use std::f64::consts::PI;
Expand Down
15 changes: 2 additions & 13 deletions src/insets.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright 2019 The kurbo Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A description of the distances between the edges of two rectangles.

Expand Down
15 changes: 2 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright 2018 The kurbo Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! 2D geometry, with a focus on curves.
//!
Expand Down
3 changes: 3 additions & 0 deletions src/line.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Lines.

use std::ops::{Add, Mul, Range, Sub};
Expand Down
15 changes: 2 additions & 13 deletions src/mindist.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright 2021 The kurbo Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright 2021 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Minimum distance between two Bézier curves
//!
Expand Down
3 changes: 3 additions & 0 deletions src/param_curve.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A trait for curves parametrized by a scalar.

use std::ops::Range;
Expand Down
3 changes: 3 additions & 0 deletions src/point.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A 2D point.

use std::fmt;
Expand Down
3 changes: 3 additions & 0 deletions src/quadbez.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Quadratic Bézier segments.

use std::ops::{Mul, Range};
Expand Down
15 changes: 2 additions & 13 deletions src/quadspline.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright 2021 The kurbo Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright 2021 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Quadratic Bézier splines.
use crate::Point;
Expand Down
3 changes: 3 additions & 0 deletions src/rect.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A rectangle.

use std::fmt;
Expand Down
3 changes: 3 additions & 0 deletions src/rounded_rect.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A rectangle with rounded corners.

use std::f64::consts::{FRAC_PI_2, FRAC_PI_4};
Expand Down
15 changes: 2 additions & 13 deletions src/rounded_rect_radii.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright 2021 The kurbo Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright 2021 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A description of the radii for each corner of a rounded rectangle.

Expand Down
3 changes: 3 additions & 0 deletions src/shape.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A generic trait for shapes.

use crate::{segments, BezPath, Circle, Line, PathEl, Point, Rect, RoundedRect, Segments};
Expand Down
3 changes: 3 additions & 0 deletions src/size.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A 2D size.

use std::fmt;
Expand Down
3 changes: 3 additions & 0 deletions src/svg.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! SVG path representation.

use std::error::Error;
Expand Down
3 changes: 3 additions & 0 deletions src/translate_scale.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2019 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A transformation that includes both scale and translation.

use std::ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign};
Expand Down
3 changes: 3 additions & 0 deletions src/vec2.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A simple 2D vector.

use std::fmt;
Expand Down