S9SourceNine Labs / CMAPI Docs 1.0
CMAPI / API reference

WorldPosition

Represents a position in Planet Crafter's three-dimensional world.

View source ↗
CMAPI 1.0.0Standalone runtimeWindows x64Tested with Planet Crafter 2.008
Namespace CMAPIStructAssembly CMAPI.API.dll
public readonly struct WorldPosition : IEquatable<WorldPosition>

Represents a position in Planet Crafter's three-dimensional world.

Members

X

property
public float X

Gets the horizontal X coordinate.

Y

property
public float Y

Gets the vertical Y coordinate.

Z

property
public float Z

Gets the horizontal Z coordinate.

WorldPosition

method
public WorldPosition(float x, float y, float z)

Creates a world position from three coordinates.

Equals

method
public bool Equals(WorldPosition other)

Checks whether this position exactly matches another position.

Equals

method
public override bool Equals(object? obj)

GetHashCode

method
public override int GetHashCode()

ToString

method
public override string ToString()

Formats the position as (X, Y, Z).