mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-23 18:36:05 +00:00
Avoid use of redundant constructor
This commit is contained in:
parent
1471ecb654
commit
44c3736625
@ -82,7 +82,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
LineSegmentIntersection::compute(
|
LineSegmentIntersection::compute(
|
||||||
&line,
|
&line,
|
||||||
&LineSegment::from_points([[1., -1.], [1., 1.]]),
|
&LineSegment::from([[1., -1.], [1., 1.]]),
|
||||||
),
|
),
|
||||||
Some(LineSegmentIntersection::Point {
|
Some(LineSegmentIntersection::Point {
|
||||||
point_on_line: Point::from([Scalar::ONE])
|
point_on_line: Point::from([Scalar::ONE])
|
||||||
@ -98,7 +98,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
LineSegmentIntersection::compute(
|
LineSegmentIntersection::compute(
|
||||||
&line,
|
&line,
|
||||||
&LineSegment::from_points([[1., 0.], [2., 0.]]),
|
&LineSegment::from([[1., 0.], [2., 0.]]),
|
||||||
),
|
),
|
||||||
Some(LineSegmentIntersection::Coincident {
|
Some(LineSegmentIntersection::Coincident {
|
||||||
points_on_line: [Point::from([1.]), Point::from([2.])],
|
points_on_line: [Point::from([1.]), Point::from([2.])],
|
||||||
@ -114,7 +114,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
LineSegmentIntersection::compute(
|
LineSegmentIntersection::compute(
|
||||||
&line,
|
&line,
|
||||||
&LineSegment::from_points([[1., 1.], [1., 2.]]),
|
&LineSegment::from([[1., 1.], [1., 2.]]),
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
@ -128,7 +128,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
LineSegmentIntersection::compute(
|
LineSegmentIntersection::compute(
|
||||||
&line,
|
&line,
|
||||||
&LineSegment::from_points([[1., -2.], [1., -1.]]),
|
&LineSegment::from([[1., -2.], [1., -1.]]),
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
@ -142,7 +142,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
LineSegmentIntersection::compute(
|
LineSegmentIntersection::compute(
|
||||||
&line,
|
&line,
|
||||||
&LineSegment::from_points([[-1., 1.], [1., 1.]]),
|
&LineSegment::from([[-1., 1.], [1., 1.]]),
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user