コード例 #1
0
        public override void Transform(Matrix4x4 transformationMatrixIn)
        {
            CentrePoint.Transform(transformationMatrixIn);
            StartPoint.Transform(transformationMatrixIn);

            Radius = GeometricArithmeticModule.ABSMeasure(StartPoint, CentrePoint);
            Update();
        }
コード例 #2
0
ファイル: MarkGeometryEllipse.cs プロジェクト: AdilGM/2DCAD
        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();
        }