Package org.polyfrost.polyui.unit
Class Units
-
- All Implemented Interfaces:
public final class Units
-
-
Field Summary
Fields Modifier and Type Field Description private final static Longnanosecondsprivate final static Longmicrosecondsprivate final static Longmillisecondsprivate final static Longmsprivate final static Longsecondsprivate final static Longsecsprivate final static Longminutesprivate final static Longhoursprivate final static AlignAlignDefaultprivate final static Vec2vec
-
Method Summary
Modifier and Type Method Description final Longnanoseconds()final Longmicroseconds()final Longmilliseconds()final Longms()final Longseconds()final Longsecs()final Longminutes()final Longhours()final AligngetAlignDefault()final Vec2getVec()final static Ref.LongReftoChromaSpeed(Long $self)final static Vec2by(Float $self, Float other)final static Vec2by(Float $self, Integer other)final static Vec2by(Float $self, Double other)final static Vec2by(Integer $self, Float other)final static Vec2by(Integer $self, Integer other)final static Vec2by(Integer $self, Double other)final static Vec2by(Double $self, Float other)final static Vec2by(Double $self, Integer other)final static Vec2by(Double $self, Double other)final static Vec2mutable(Vec2 $self)final static Unitscale(Vec2 $self, PolyUI polyUI)Scale this vec2 by any scaling that has been applied to this PolyUI instance. final static Vec2.Immutableimmutable(Vec2 $self)-
-
Method Detail
-
nanoseconds
final Long nanoseconds()
-
microseconds
final Long microseconds()
-
milliseconds
final Long milliseconds()
-
getAlignDefault
final Align getAlignDefault()
-
toChromaSpeed
final static Ref.LongRef toChromaSpeed(Long $self)
-
scale
final static Unit scale(Vec2 $self, PolyUI polyUI)
Scale this vec2 by any scaling that has been applied to this PolyUI instance.
This method is useful in conjunction with resize operations to ensure that it is scaled to the local coordinate system.
- Since:
1.2.0
-
immutable
final static Vec2.Immutable immutable(Vec2 $self)
-
-
-
-