public override void Transform(Matrix4x4 transformationMatrixIn) { CentrePoint.Transform(transformationMatrixIn); StartPoint.Transform(transformationMatrixIn); Radius = GeometricArithmeticModule.ABSMeasure(StartPoint, CentrePoint); Update(); }
public override void Transform(Matrix4x4 transformationMatrixIn) { // transform centre point CentrePoint.Transform(transformationMatrixIn); StartPoint.Transform(transformationMatrixIn); // use updated centre point to calculate major and minor axes var res = GeometricArithmeticModule.CalculateMajorMinorAxis(CentrePoint, StartPoint, StartAngle); // update details MajorAxis = res.MajorAxis; MinorAxis = res.MinorAxis; Update(); }