Packages

 

com.aspose.cad.fileformats.cad.cadobjects.helpers

Class Cad3DPointHelper

  • java.lang.Object
    • com.aspose.cad.fileformats.cad.cadobjects.helpers.Cad3DPointHelper


  • public final class Cad3DPointHelper
    extends Object

    Helper class of 3D points

    • Constructor Detail

      • Cad3DPointHelper

        public Cad3DPointHelper()
    • Method Detail

      • 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 static double distance(Cad3DPoint point,
                                      Cad3DPoint destination)

        The distance.

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

        public static double length(Cad3DPoint point)

        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 static Cad3DPoint inverse(Cad3DPoint point)

        Inverses this instance.

        Returns:
        Result of Inverses