Class Scale

java.lang.Object
fr.r1r0r0.deltaengine.model.Scale

public final class Scale
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static Scale DEFAULT_SCALE  
    static java.lang.Double DEFAULT_SCALE_X
    Default scale scale is sometime useful for mirroring for example dimension could not be used for this as they have to be positive
    static java.lang.Double DEFAULT_SCALE_Y  
    private double scaleX  
    private double scaleY  
  • Constructor Summary

    Constructors
    Constructor Description
    Scale​(double scaleX, double scaleY)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    double getScaleX()
    Return the attribute scaleX
    double getScaleY()
    Return the attribute scaleY

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_SCALE_X

      public static final java.lang.Double DEFAULT_SCALE_X
      Default scale scale is sometime useful for mirroring for example dimension could not be used for this as they have to be positive
    • DEFAULT_SCALE_Y

      public static final java.lang.Double DEFAULT_SCALE_Y
    • DEFAULT_SCALE

      public static final Scale DEFAULT_SCALE
    • scaleX

      private final double scaleX
    • scaleY

      private final double scaleY
  • Constructor Details

    • Scale

      public Scale​(double scaleX, double scaleY)
      Constructor
      Parameters:
      scaleX - the width
      scaleY - the height
  • Method Details

    • getScaleX

      public double getScaleX()
      Return the attribute scaleX
      Returns:
      the attribute scaleX
    • getScaleY

      public double getScaleY()
      Return the attribute scaleY
      Returns:
      the attribute scaleY