Packages

 

com.aspose.cad.fileformats.cad.cadobjects

com.aspose.cad.fileformats.cad.cadobjects

Class Cad2DPoint

  • Direct Known Subclasses:
    Cad3DPoint


    public class Cad2DPoint
    extends Object

    The Cad 2 d point.

    • Constructor Detail

      • Cad2DPoint

        public Cad2DPoint()

        Initializes a new instance of the Cad2DPoint class.

      • Cad2DPoint

        public Cad2DPoint(double x,
                          double y)

        Initializes a new instance of the Cad2DPoint class.

        Parameters:
        x - The x ordinate.
        y - The y ordinate.
    • Method Detail

      • fromAttributes

        public static Cad2DPoint fromAttributes(int attributeX,
                                                int attributeY)

        Initializes a new instance of the Cad2DPoint class.

        Parameters:
        attributeX - The attribute x.
        attributeY - The attribute y.
      • getX

        public double getX()

        Gets or sets the x.

      • setX

        public void setX(double value)

        Gets or sets the x.

      • getY

        public double getY()

        Gets or sets the y.

      • setY

        public void setY(double value)

        Gets or sets the y.

      • getParamX_internalized

        public CadDoubleParameter getParamX_internalized()

        Gets or sets the param x.

      • getParamY_internalized

        public CadDoubleParameter getParamY_internalized()

        Gets or sets the param y.

      • distance

        public double distance(Cad2DPoint destination)

        Distances the specified destination.

        Parameters:
        destination - The destination.
        Returns:
        Distance to point
      • getFPoint

        public Point2D.Float getFPoint()

        Gets the point.

        Returns:
        The Imaging.PointF.
      • getFPoint_internalized

        public com.aspose.ms.System.Drawing.PointF getFPoint_internalized()
      • cad2DPointFromVertex_internalized

        public static Cad2DPoint cad2DPointFromVertex_internalized(CadBaseEntity baseVertex)

        Gets point location from 3DVertex or 2DVertex. Requires for polyline rendering.

        Parameters:
        baseVertex - Object with base vertex
        Returns:
        Cad2DPoint location
      • addToCadParams_internalized

        public void addToCadParams_internalized(String subClass,
                                                CadBase baseObject)

        The add to Cad params.

        Parameters:
        subClass - The sub class.
        baseObject - The base object.