JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.util.geometry

Class Circle2D

  • All Implemented Interfaces:
    Shape2D


    public class Circle2D
    extends Object
    implements Shape2D 
    Simple 2D shape circle.
    Author:
    Ronald Brill
    • Constructor Detail

      • Circle2D

        public Circle2D(double centerX,
         double centerY,
         double radius)
        Ctor.
        Parameters:
        centerX - x value of the second center
        centerY - y value of the second center
        radius - the radius
    • Method Detail

      • contains

        public boolean contains(double x,
         double y)
        Specified by:
        contains in interface Shape2D
        Parameters:
        x - point x value
        y - point y value
        Returns:
        true if the specified point is inside; false otherwise.
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Shape2D
        Returns:
        true if the Shape is empty.
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /