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

Class RectangleLength2D_F32

  • All Implemented Interfaces:
    java.io.Serializable


    public class RectangleLength2D_F32
    extends java.lang.Object
    implements java.io.Serializable

    An axis aligned rectangle in 2D that is specified by its lower extent (x0,y0), width, and height. The three other corners are (x0 + width,y0), (x0,y0 + height), (x0 + width,y0 + height).

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      float height
      Rectangle's height
      float width
      Rectangle's width
      float x0
      Lower extent x-axis
      float y0
      Lower extent y-axis
    • Field Detail

      • x0

        public float x0
        Lower extent x-axis
      • y0

        public float y0
        Lower extent y-axis
      • width

        public float width
        Rectangle's width
      • height

        public float height
        Rectangle's height
    • Constructor Detail

      • RectangleLength2D_F32

        public RectangleLength2D_F32()
      • RectangleLength2D_F32

        public RectangleLength2D_F32(float x0,
                                     float y0,
                                     float width,
                                     float height)
    • Method Detail

      • setLowerExtent

        public void setLowerExtent(float x,
                                   float y)
        Sets lower extent
        Parameters:
        x - x-coordinate
        y - y-coordinate
      • getWidth

        public float getWidth()
      • setWidth

        public void setWidth(float width)
      • getHeight

        public float getHeight()
      • setHeight

        public void setHeight(float height)
      • getX

        public float getX()
        Returns:
        Lower-extent x-coordinate
      • setX

        public void setX(float x)
        Sets the lower-extent x-coordinate
        Parameters:
        x - Lower-extent x-coordinate
      • getY

        public float getY()
        Returns:
        Lower-extent y-coordinate
      • setY

        public void setY(float y)
        Sets the lower-extent y-coordinate
        Parameters:
        y - Lower-extent y-coordinate
      • set

        public void set(RectangleLength2D_I32 r)
        Sets this rectangle to be equal to the passed in rectangle.
        Parameters:
        r - Rectangle which this is to be set equal to
      • 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.