Packages

 

com.aspose.cad.fileformats.cad.cadobjects

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(int attributeZ)

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

        Parameters:
        attributeZ - The attribute z.
      • Cad3DPoint

        public Cad3DPoint(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.
      • 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

      • getZ

        public final double getZ()

        Gets or sets the z.

      • setZ

        public final void setZ(double value)

        Gets or sets the 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 final double distance(Cad3DPoint destination)

        The distance.

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

        public final double length()

        The length.

        Returns:
        The double.
      • cross

        public static Cad3DPoint cross(Cad3DPoint vc1,
                                       Cad3DPoint vc2)

        The cross product of two vectors.

        Parameters:
        vc1 - The first vector
        vc2 - The second vector
        Returns:
        Result of cross
      • dot

        public static double dot(Cad3DPoint vc1,
                                 Cad3DPoint vc2)

        The dot product of two vectors.

        Parameters:
        vc1 - The first vector
        vc2 - The second vector
        Returns:
        Result of dot
      • min

        public static Cad3DPoint min(Cad3DPoint pt1,
                                     Cad3DPoint pt2)

        The minimum of two points.

        Parameters:
        pt1 - The first point
        pt2 - The second point
        Returns:
        Result of Min
      • max

        public static Cad3DPoint max(Cad3DPoint pt1,
                                     Cad3DPoint pt2)

        The maximum of two points.

        Parameters:
        pt1 - The first point
        pt2 - The second point
        Returns:
        Result of Max
      • inverse

        public final Cad3DPoint inverse()

        Inverses this instance.

        Returns:
        Result of Inverses
      • 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

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.