Class ArrowPaintHelper


  • public class ArrowPaintHelper
    extends java.lang.Object
    This class helps with painting arrows with fixed length along a path.
    Since:
    10827
    • Field Detail

      • sin

        private final double sin
      • cos

        private final double cos
      • length

        private final double length
    • Constructor Detail

      • ArrowPaintHelper

        public ArrowPaintHelper​(double radians,
                                double length)
        Creates a new arrow helper.
        Parameters:
        radians - The angle of the arrow. 0 means that it lies on the current line. In radians
        length - The length of the arrow lines.
    • Method Detail

      • getOnLineLength

        public double getOnLineLength()
        Gets the length of the arrow along the line segment.
        Returns:
        the length along the line
        Since:
        12154