public readonly struct WorldPosition : IEquatable<WorldPosition>Represents a position in Planet Crafter's three-dimensional world.
Members
XGets the horizontal X coordinate.propertyYGets the vertical Y coordinate.propertyZGets the horizontal Z coordinate.propertyWorldPositionCreates a world position from three coordinates.methodEqualsChecks whether this position exactly matches another position.methodEqualsmethodGetHashCodemethodToStringFormats the position as (X, Y, Z).methodX
propertypublic float XGets the horizontal X coordinate.
Y
propertypublic float YGets the vertical Y coordinate.
Z
propertypublic float ZGets the horizontal Z coordinate.
WorldPosition
methodpublic WorldPosition(float x, float y, float z)Creates a world position from three coordinates.
Equals
methodpublic bool Equals(WorldPosition other)Checks whether this position exactly matches another position.
Equals
methodpublic override bool Equals(object? obj)GetHashCode
methodpublic override int GetHashCode()ToString
methodpublic override string ToString()Formats the position as (X, Y, Z).