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: str
Gets the hostname.
port
port: int
Gets 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: float
The magnitude of the Vector
length_squared
length_squared: float
The squared magnitude of the Vector
x
x: float
The X component of the vector
y
y: float
The Y component of the vector
z
z: float
The Z component of the vector
distance
distance(other:Vector) -> float
The distance between this Vector and another
distance_squared
distance_squared(other:Vector) -> float
The squared distance between this Vector and another
Last updated on