mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 22:05:32 +00:00
BEZIER: Avoid some copying in the ctor
This commit is contained in:
parent
5c6f334f8f
commit
e2370c6e45
@ -96,12 +96,9 @@ class BEZIER
|
||||
public:
|
||||
BEZIER() = default;
|
||||
|
||||
BEZIER( VECTOR2<NumericType> aStart, VECTOR2<NumericType> aC1, VECTOR2<NumericType> aC2,
|
||||
VECTOR2<NumericType> aEnd ) :
|
||||
Start( aStart ),
|
||||
C1( aC1 ),
|
||||
C2( aC2 ),
|
||||
End( aEnd )
|
||||
BEZIER( const VECTOR2<NumericType>& aStart, const VECTOR2<NumericType>& aC1,
|
||||
const VECTOR2<NumericType>& aC2, const VECTOR2<NumericType>& aEnd ) :
|
||||
Start( aStart ), C1( aC1 ), C2( aC2 ), End( aEnd )
|
||||
{}
|
||||
|
||||
VECTOR2<NumericType> Start;
|
||||
|
Loading…
Reference in New Issue
Block a user