endstone.util
Classes:
| Name | Description |
|---|---|
SocketAddress | Represents an IP Socket Address (hostname + port number). |
Vector | Represents a 3-dimensional vector. |
SocketAddress
SocketAddress()Represents an IP Socket Address (hostname + port number).
Attributes:
hostname
hostname: strGets the hostname.
port
port: intGets the port number.
Vector
Vector()Represents a 3-dimensional vector.
Methods:
| Name | Description |
|---|---|
distance | The distance between this Vector and another |
distance_squared | The squared distance between this Vector and another |
Attributes:
| Name | Type | Description |
|---|---|---|
length | float | The magnitude of the Vector |
length_squared | float | The squared magnitude of the Vector |
x | float | The X component of the vector |
y | float | The Y component of the vector |
z | float | The Z component of the vector |
length
length: floatThe magnitude of the Vector
length_squared
length_squared: floatThe squared magnitude of the Vector
x
x: floatThe X component of the vector
y
y: floatThe Y component of the vector
z
z: floatThe Z component of the vector
distance
distance(other:Vector) -> floatThe distance between this Vector and another
distance_squared
distance_squared(other:Vector) -> floatThe squared distance between this Vector and another
Last updated on