LineCurve constructor
LineCurve(
- Vector v1,
- Vector v2
v1
– The start point.
v2
- The end point.
Implementation
LineCurve(Vector v1, Vector v2) {
if(v1 is! Vector2){
v1 = Vector2(v1.x,v1.y);
}
if(v2 is! Vector2){
v2 = Vector2(v2.x,v2.y);
}
this.v1 = v1;
this.v2 = v2;
isLineCurve = true;
}