Package org.polyfrost.polyui.unit
Class Vec2.Relative
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class Vec2.Relative extends Vec2.Sourced
-
-
Field Summary
Fields Modifier and Type Field Description private Floatxprivate Floatyprivate Vec2sourceprivate final Booleansourcedprivate Floatwidthprivate Floatheightprivate final BooleanisZeroprivate final BooleanhasZeroprivate final BooleanisNegativeprivate final Floatmagnitude2private final Floatmagnitude
-
Constructor Summary
Constructors Constructor Description Vec2.Relative(Float x, Float y, Vec2 parent)
-
Method Summary
Modifier and Type Method Description FloatgetX()UnitsetX(Float x)FloatgetY()UnitsetY(Float y)final Unitzero()Effectively make this vector equal to the source. -
Methods inherited from class org.polyfrost.polyui.unit.Vec2.Sourced
getSource, getSourced, setSource -
Methods inherited from class org.polyfrost.polyui.unit.Vec2
compareTo, compareTo, equals, get, getHasZero, getHeight, getMagnitude, getMagnitude2, getWidth, hashCode, isNegative, isZero, max, min, minusAssign, normalize, plus, plusAssign, resize, scale, set, set, setHeight, setWidth, timesAssign, timesAssign, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-