Packages

 

com.aspose.cad.fileformats.cad.cadobjects

Interfaces

Classes

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(double x,
                          double y)

        Initializes a new instance of the Cad3DPoint class.

        Parameters:
        x - The pointX.
        y - The point Y.
    • Method Detail

      • getZ

        public final double getZ()

        Gets or sets the z.

      • setZ

        public final void setZ(double value)

        Gets or sets the z.

      • op_Addition

        public static Cad3DPoint op_Addition(Cad3DPoint pt1,
                                             Cad3DPoint pt2)

        Sum of two points

        Parameters:
        pt1 - The first point
        pt2 - The second point
        Returns:
        Returns the sum
      • op_Subtraction

        public static Cad3DPoint op_Subtraction(Cad3DPoint pt1,
                                                Cad3DPoint pt2)

        Diff of two points

        Parameters:
        pt1 - The first point
        pt2 - The second point
        Returns:
        Returns the diff
      • op_Multiply

        public static Cad3DPoint op_Multiply(Cad3DPoint pt,
                                             double sc)

        Multiplication of a point and a scalar

        Parameters:
        pt - The point
        sc - The scalar
        Returns:
        Returns the sum