| Name | Summary |
|---|---|
WatchedVector2 | constructor(attribute: Vector2Attribute, value: Vector2) |
| Name | Summary |
|---|---|
x | open override var x: Float |
y | open override var y: Float |
| Name | Summary |
|---|---|
add | |
component1 | operator fun component1(): Float |
component2 | operator fun component2(): Float |
copy | fun copy(): Vector2 Returns a copy of this vector. |
cross | fun cross(other: Vector2): Float Calculates the cross product of this vector with another vector. |
distanceTo | fun distanceTo(v: Vector2): Float Calculates the distance to another vector. |
div | operator fun div(v: Float): Vector2 Divides each component of this vector by a scalar. |
divide | fun divide(v: Float): Vector2 Divides each component of this vector by a scalar. |
dot | fun dot(v: Vector2): Float Calculates the dot product of this vector with another vector. |
equals | open operator override fun equals(other: Any?): Boolean |
hashCode | open override fun hashCode(): Int |
length | fun length(): Float Returns the length (magnitude) of this vector. |
lerp | |
max | |
min | |
minus | |
multiply | |
negate | fun negate(): Vector2 Negates this vector. |
normalize | fun normalize(): Vector2 Normalizes this vector. |
plus | |
setX | fun setX(x: Float): Vector2 Sets the x component of this vector. |
setY | fun setY(y: Float): Vector2 Sets the y component of this vector. |
sub | |
times | |
toString | open override fun toString(): String Returns a string representation of the vector. |
unaryMinus | operator fun unaryMinus(): Vector2 Negates this vector. |