src/main/java/org/a05annex/util/geo2d/KochanekBartelsSpline.java
@SuppressWarnings("unchecked")
        public @NotNull JSONObject toJSON() {
            JSONObject controlPoint = new JSONObject();
            controlPoint.put(FIELD_X, m_fieldX);
            controlPoint.put(FIELD_Y, m_fieldY);
            controlPoint.put(FIELD_HEADING, m_fieldHeading);
            controlPoint.put(TIME, m_time);
            controlPoint.put(LOCATION_DERIVATIVES_EDITED, m_locationDerivativesEdited);
            controlPoint.put(FIELD_dX, m_dX);
            controlPoint.put(FIELD_dY, m_dY);
            controlPoint.put(FIELD_dHEADING, m_dHeading);
            return controlPoint;
        }
/**
         * Create a JSONObject and write a control point to that JSONObject.
         *
         * @return (not null, JSONObject) The JSONObject containing this control point.
         */
Create a JSONObject and write a control point to that JSONObject.
@return (not null, JSONObject) The JSONObject containing this control point.
Create a JSONObject and write a control point to that JSONObject . @return ( not null JSONObject ) The JSONObject containing this control point .
@SuppressWarnings("unchecked")
        public @NotNull JSONObject toJSON() {
            JSONObject controlPoint = new JSONObject();
            controlPoint.put(FIELD_X, m_fieldX);
            controlPoint.put(FIELD_Y, m_fieldY);
            controlPoint.put(FIELD_HEADING, m_fieldHeading);
            controlPoint.put(TIME, m_time);
            controlPoint.put(LOCATION_DERIVATIVES_EDITED, m_locationDerivativesEdited);
            controlPoint.put(FIELD_dX, m_dX);
            controlPoint.put(FIELD_dY, m_dY);
            controlPoint.put(FIELD_dHEADING, m_dHeading);
            return controlPoint;
        }
@ SuppressWarnings ( "unchecked" ) public @ NotNull JSONObject toJSON ( ) { JSONObject controlPoint = new JSONObject ( ) ; controlPoint . put ( FIELD_X , m_fieldX ) ; controlPoint . put ( FIELD_Y , m_fieldY ) ; controlPoint . put ( FIELD_HEADING , m_fieldHeading ) ; controlPoint . put ( TIME , m_time ) ; controlPoint . put ( LOCATION_DERIVATIVES_EDITED , m_locationDerivativesEdited ) ; controlPoint . put ( FIELD_dX , m_dX ) ; controlPoint . put ( FIELD_dY , m_dY ) ; controlPoint . put ( FIELD_dHEADING , m_dHeading ) ; return controlPoint ; }
Create a JSONObject and write a control point to that JSONObject.
Create a JSONObject and write a control point to that JSONObject .