Source set: Common
public class AnimationVector2D(v1: Float, v2: Float) : AnimationVector()
This class defines a 2D vector that contains two Float values for the two dimensions.
Parameters
| v1 | initial value to set on the first dimension |
| v2 | initial value to set on the second dimension |
Properties
v1
Source set: Common
public var v1: Float = v1
Float value field for the first dimension of the 2D vector.
v2
Source set: Common
public var v2: Float = v2
Float value field for the second dimension of the 2D vector.
size
Source set: Common
override val size: Int = 2
Functions
reset
Source set: Common
override fun reset()
newVector
Source set: Common
override fun newVector(): AnimationVector2D
get
Source set: Common
override fun get(index: Int): Float
set
Source set: Common
override fun set(index: Int, value: Float)
toString
Source set: Common
override fun toString(): String
equals
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int