Packages

 

com.aspose.cad.fileformats.cad.cadobjects

com.aspose.cad.fileformats.cad.cadobjects

Class Cad3DPoint



  • public class Cad3DPoint
    extends Cad2DPoint

    The Cad point.

    • Constructor Detail

      • Cad3DPoint

        public Cad3DPoint()

        Initializes a new instance of the Cad3DPoint class.

      • Cad3DPoint

        public Cad3DPoint(double x,
                          double y,
                          double z)

        Initializes a new instance of the Cad3DPoint class.

        Parameters:
        x - The x ordinate.
        y - The y ordinate.
        z - The z ordinate.
      • Cad3DPoint

        public Cad3DPoint(int attributeZ)

        Initializes a new instance of the Cad3DPoint class, but only z attribute.

        Parameters:
        attributeZ - The attribute z.
      • Cad3DPoint

        public Cad3DPoint(double pointX,
                          double pointY)

        Initializes a new instance of the Cad3DPoint class.

        Parameters:
        pointX - The pointX.
        pointY - The point Y.
    • Method Detail

      • fromAttributes

        public static Cad3DPoint fromAttributes(int attributeX,
                                                int attributeY,
                                                int attributeZ)

        Initializes a new instance of the Cad3DPoint class.

        Parameters:
        attributeX - The attribute x.
        attributeY - The attribute y.
        attributeZ - The attribute z.
      • getZ

        public double getZ()

        Gets or sets the z.

      • setZ

        public void setZ(double value)

        Gets or sets the z.

      • getParamZ_internalized

        public CadDoubleParameter getParamZ_internalized()

        Gets or sets the param z.

      • setParamZ_internalized

        public void setParamZ_internalized(CadDoubleParameter value)

        Gets or sets the param z.

      • angleBetween3Points

        public static double angleBetween3Points(Cad3DPoint a,
                                                 Cad3DPoint b,
                                                 Cad3DPoint c)

        Angles the between3 points.

        Parameters:
        a - First Point
        b - second point
        c - third point
        Returns:
        Angle between 3 points
      • rotatePoint

        public static Cad3DPoint rotatePoint(Cad3DPoint pointToRotate,
                                             Cad3DPoint centerPoint,
                                             double angleInRadians)

        Rotates one point arount another one

        Parameters:
        pointToRotate - the point to rotate
        centerPoint - the centre point of rotation
        angleInRadians - The angle In Radians.
        Returns:
        Rotated point
      • distance

        public double distance(Cad3DPoint destination)

        The distance.

        Parameters:
        destination - The destination.
        Returns:
        The double.
      • addToCadParams_internalized

        public void addToCadParams_internalized(String subClass,
                                                CadBase baseObject)

        The add to Cad params.

        Overrides:
        addToCadParams_internalized in class Cad2DPoint
        Parameters:
        subClass - The sub class.
        baseObject - The base object.
      • removeFromCadParams

        public void removeFromCadParams(String subClass,
                                        CadBase baseObject)

        Removes from cad parameters.

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