12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import 'package:fis_measure/interfaces/date_types/matrix.dart';
- import 'package:fis_measure/interfaces/date_types/point.dart';
- import 'package:fis_measure/interfaces/process/physical_coordinates/physical_coordinate.dart';
- import 'package:vid/us/vid_us_physical_coordinate.dart';
- class DopplerPhysicalCoordinate implements ITimeMotionPhysicalCoordiante {
- late final double _max;
- late final double _min;
- late final double _sweepSpeed;
- late final double _baseLine;
- DopplerPhysicalCoordinate(
- VidUsDopplerPhysicalCoordinate vidData,
- ) {
- _max = vidData.max;
- _min = vidData.min;
- _sweepSpeed = vidData.sweepSpeed;
- _baseLine = vidData.baseLine;
- }
- double get baseLine => _baseLine;
- @override
- double get max => _max;
- @override
- double get min => _min;
- @override
- double get sweepSpeed => _sweepSpeed;
- @override
- DPoint convert(DPoint point) {
- final point2 = _transform(point);
- return point2;
- }
- DPoint _transform(DPoint point) {
- var matrix = DMatrix();
- DPoint point2 = point;
- matrix.multiplyPoint(point2);
- return point2;
- }
- @override
- DPoint convertBack(DPoint point) {
- return point;
- }
- }
|