public class DimensFloat extends Object
| 构造器 | 说明 |
|---|---|
DimensFloat() |
A no-argument constructor used to create a
DimensFloat instance. |
DimensFloat(float sizeX,
float sizeY) |
A constructor used to create a
DimensFloat instance based on specified float values in the X and Y axes. |
DimensFloat(int sizeX,
int sizeY) |
A constructor used to create a
DimensFloat instance based on specified int values in the X and Y axes. |
DimensFloat(DimensFloat dimens) |
A constructor used to create a
DimensFloat instance by copying parameters of an existing one. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
DimensFloat |
copy(float size) |
Sets the values in the X and Y axes of this
DimensFloat instance to the same float value specified
by size. |
DimensFloat |
copy(float sizeX,
float sizeY) |
Sets the values in the X and Y axes of this
DimensFloat instance to those float values specified
by sizeX and sizeY. |
DimensFloat |
copy(int size) |
Sets the values in the X and Y axes of this
DimensFloat instance to the same int value specified
by size. |
DimensFloat |
copy(int sizeX,
int sizeY) |
Sets the values in the X and Y axes of this
DimensFloat instance to those int values specified
by sizeX and sizeY. |
DimensFloat |
copy(DimensFloat copyDimensFloat) |
Copies the content of a specified
DimensFloat instance into this instance. |
DimensFloat |
divisionAll(float division) |
Divides the values in the X and Y axes of this
DimensFloat instance
by the same float value specified by division, respectively. |
DimensFloat |
divisionAll(int division) |
Divides the values in the X and Y axes of this
DimensFloat instance by the same int value specified
by division, respectively. |
boolean |
equals(Object obj) |
Checks whether the content of the specified object is the same as that of this
DimensFloat instance. |
float |
getMax() |
Obtains the maximum value between the float values in the X and Y axes of this
DimensFloat instance. |
int |
getMaxToInt() |
Obtains the maximum value between the int values in the X and Y axes of this
DimensFloat instance. |
float |
getMedian() |
Obtains the median value of the float values in the X and Y axes of this
DimensFloat instance. |
int |
getMedianToInt() |
Obtains the median value of the int values in the X and Y axes of this
DimensFloat instance. |
float |
getMin() |
Obtains the minimum value between the float values in the X and Y axes of this
DimensFloat instance. |
int |
getMinToInt() |
Obtains the minimum value between the int values in the X and Y axes of this
DimensFloat instance. |
float |
getProduct() |
Obtains the product of the float values in the X and Y axes of this
DimensFloat instance. |
int |
getProductToInt() |
Obtains the product of the int values in the X and Y axes of this
DimensFloat instance. |
float |
getQuotient() |
Obtains the quotient of the float values in the X and Y axes of this
DimensFloat instance. |
int |
getQuotientCeilInt() |
Obtains the quotient of the int values in the X and Y axes of this
DimensFloat instance and rounds it up. |
int |
getQuotientFloorInt() |
Obtains the quotient of the int values in the X and Y axes of this
DimensFloat instance
and rounds it down. |
float |
getSizeX() |
Obtains the float value in the X axis of this
DimensFloat instance. |
int |
getSizeXToInt() |
Obtains the int value in the X axis of this
DimensFloat instance. |
float |
getSizeY() |
Obtains the float value in the Y axis of this
DimensFloat instance. |
int |
getSizeYToInt() |
Obtains the int value in the Y axis of this
DimensFloat instance. |
float[] |
getValueToFloatArray() |
Obtains a float array formed by the values in the X and Y axes of this
DimensFloat instance. |
int |
hashCode() |
Obtains the hash code of this
DimensFloat instance. |
DimensFloat |
increase(float increaseX,
float increaseY) |
Adds the float values specified by
increaseX and increaseY to those in the X and Y axes
of this DimensFloat instance, respectively. |
DimensFloat |
increaseAll(float increase) |
Adds the float value specified by
increase to both values in the X and Y axes
of this DimensFloat instance. |
DimensFloat |
increaseAll(int increase) |
Adds the int value specified by
increase to both values in the X and Y axes
of this DimensFloat instance. |
DimensFloat |
multiplicationAll(float multiplication) |
Multiplies the values in the X and Y axes of this
DimensFloat instance
by the same float value specified by multiplication, respectively. |
DimensFloat |
multiplicationAll(int multiplication) |
Multiplies the values in the X and Y axes of this
DimensFloat instance
by the same int value specified by multiplication, respectively. |
DimensFloat |
setSizeX(float sizeX) |
Sets a float value for the X axis of this
DimensFloat instance. |
DimensFloat |
setSizeX(int sizeX) |
Sets an int value for the X axis of this
DimensFloat instance. |
DimensFloat |
setSizeY(float sizeY) |
Sets a float value for the Y axis of this
DimensFloat instance. |
DimensFloat |
setSizeY(int sizeY) |
Sets an int value for the Y axis of this
DimensFloat instance. |
DimensFloat |
subtraction(float subtractionX,
float subtractionY) |
Subtracts the float values specified by
subtractionX and subtractionY from
those in the X and Y axes of this DimensFloat instance, respectively. |
DimensFloat |
subtractionAll(float subtraction) |
Subtracts the float value specified by
subtraction from both values in the X and Y axes
of this DimensFloat instance. |
DimensFloat |
subtractionAll(int subtraction) |
Subtracts the int value specified by
subtraction from both values in the X and Y axes
of this DimensFloat instance. |
String |
toString() |
Obtains the string representation of this
DimensFloat instance. |
public DimensFloat()
DimensFloat instance.public DimensFloat(DimensFloat dimens)
DimensFloat instance by copying parameters of an existing one.dimens - Indicates the existing DimensFloat sample object.public DimensFloat(float sizeX,
float sizeY)
DimensFloat instance based on specified float values in the X and Y axes.sizeX - Indicates the float value in the X axis.sizeY - Indicates the float value in the Y axis.public DimensFloat(int sizeX,
int sizeY)
DimensFloat instance based on specified int values in the X and Y axes.sizeX - Indicates the int value in the X axis.sizeY - Indicates the int value in the Y axis.public DimensFloat copy(DimensFloat copyDimensFloat)
DimensFloat instance into this instance.copyDimensFloat - Indicates the sample instance to copy.DimensFloat instance.public DimensFloat copy(float sizeX, float sizeY)
DimensFloat instance to those float values specified
by sizeX and sizeY.sizeX - Indicates the float value in the X axis.sizeY - Indicates the float value in the Y axis.DimensFloat instance.public DimensFloat copy(int sizeX, int sizeY)
DimensFloat instance to those int values specified
by sizeX and sizeY.sizeX - Indicates the int value in the X axis.sizeY - Indicates the int value in the Y axis.DimensFloat instance.public DimensFloat copy(float size)
DimensFloat instance to the same float value specified
by size.size - Indicates the new float value to set.DimensFloat instance.public DimensFloat copy(int size)
DimensFloat instance to the same int value specified
by size.size - Indicates the new int value to set.DimensFloat instance.public DimensFloat increaseAll(float increase)
increase to both values in the X and Y axes
of this DimensFloat instance.increase - Indicates the float value to add.DimensFloat instance.public DimensFloat increase(float increaseX, float increaseY)
increaseX and increaseY to those in the X and Y axes
of this DimensFloat instance, respectively.increaseX - Indicates the float value to be added to that in the X axis.increaseY - Indicates the float value to be added to that in the Y axis.DimensFloat instance.public DimensFloat increaseAll(int increase)
increase to both values in the X and Y axes
of this DimensFloat instance.increase - Indicates the int value to add.DimensFloat instance.public DimensFloat subtractionAll(float subtraction)
subtraction from both values in the X and Y axes
of this DimensFloat instance.subtraction - Indicates the float value to subtract.DimensFloat instance.public DimensFloat subtractionAll(int subtraction)
subtraction from both values in the X and Y axes
of this DimensFloat instance.subtraction - Indicates the int value to subtract.DimensFloat instance.public DimensFloat subtraction(float subtractionX, float subtractionY)
subtractionX and subtractionY from
those in the X and Y axes of this DimensFloat instance, respectively.subtractionX - Indicates the float value to be subtracted from that in the X axis.subtractionY - Indicates the float value to be subtracted from that in the Y axis.DimensFloat instance.public DimensFloat multiplicationAll(float multiplication)
DimensFloat instance
by the same float value specified by multiplication, respectively.multiplication - Indicates the float value to multiply.DimensFloat instance.public DimensFloat multiplicationAll(int multiplication)
DimensFloat instance
by the same int value specified by multiplication, respectively.multiplication - Indicates the int value to multiply.DimensFloat instance.public DimensFloat divisionAll(float division)
DimensFloat instance
by the same float value specified by division, respectively.division - Indicates the float value to divide.DimensFloat instance.public DimensFloat divisionAll(int division)
DimensFloat instance by the same int value specified
by division, respectively.division - Indicates the int value to divide.DimensFloat instance.public float getProduct()
DimensFloat instance.public int getProductToInt()
DimensFloat instance.public float getQuotient()
DimensFloat instance.public int getQuotientCeilInt()
DimensFloat instance and rounds it up.public int getQuotientFloorInt()
DimensFloat instance
and rounds it down.public float getMedian()
DimensFloat instance.public int getMedianToInt()
DimensFloat instance.public float getSizeX()
DimensFloat instance.public int getSizeXToInt()
DimensFloat instance.public DimensFloat setSizeX(float sizeX)
DimensFloat instance.sizeX - Indicates the float value in the X axis to set.DimensFloat instance.public DimensFloat setSizeX(int sizeX)
DimensFloat instance.sizeX - Indicates the int value in the X axis to set.DimensFloat instance.public int getSizeYToInt()
DimensFloat instance.public float getSizeY()
DimensFloat instance.public DimensFloat setSizeY(float sizeY)
DimensFloat instance.sizeY - Indicates the float value in the Y axis to set.DimensFloat instance.public DimensFloat setSizeY(int sizeY)
DimensFloat instance.sizeY - Indicates the int value in the Y axis to set.DimensFloat instance.public float[] getValueToFloatArray()
DimensFloat instance.public float getMin()
DimensFloat instance.public float getMax()
DimensFloat instance.public int getMinToInt()
DimensFloat instance.public int getMaxToInt()
DimensFloat instance.public boolean equals(Object obj)
DimensFloat instance.equals 在类中 Objectobj - Indicates the object to compare.true if the contents of the two objects are the same; returns false otherwise.Object.hashCode(),
HashMappublic int hashCode()
DimensFloat instance.hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)