Documentation of 'georegression.struct.shapes.Rectangle2D_F32' Java class
Rectangle2D_F32
georegression.struct.shapes

Class Rectangle2D_F32

  • All Implemented Interfaces:
    java.io.Serializable


    public class Rectangle2D_F32
    extends java.lang.Object
    implements java.io.Serializable
    An axis aligned rectangle in 2D that is specified by its lower-extent p0, and upper-extent p1.
    See Also:
    Serialized Form
    • Constructor Detail

      • Rectangle2D_F32

        public Rectangle2D_F32(float x0,
                               float y0,
                               float x1,
                               float y1)
      • Rectangle2D_F32

        public Rectangle2D_F32()
    • Method Detail

      • set

        public void set(float x0,
                        float y0,
                        float x1,
                        float y1)
      • enforceExtents

        public void enforceExtents()
        Makes sure x0,y0 is the lower extent and x1,y1 is the upper extent
      • getWidth

        public float getWidth()
      • getHeight

        public float getHeight()
      • area

        public float area()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.