Table of Contents

Class PointOfInterestOutline

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

A site's footprint seen from above (2026-10-18: "Towns, cities and all other points of interest need different carving besides just circles"): how far its ground reaches from its anchor toward each of a ring of evenly spaced bearings, the first due north (+z), turning east (+x) as a yaw does. Between two bearings its edge runs straight, so the footprint is a star-shaped polygon: every point of it is seen from the anchor, and a ray from the anchor leaves it exactly once.

public static class PointOfInterestOutline
Inheritance
PointOfInterestOutline
Inherited Members

Remarks

One footprint, read by everything. The pad's levelling, the keep-outs, the ways' owner marks and carve, the layout's boundary, the walls, the moat, the fields round a town and its region all read the same outline. The site's radius stays its bounding reach (no point of the outline is farther), so spacing and culling by radius still hold.

An empty outline is a circle of the radius it is read with: every site planned before outlines (and every kind that keeps a disc, a bridge or a mill on its bank) reads exactly as it did.

Fields

Bearings

How many bearings a generated outline is drawn at: 11.25° apart.

public const int Bearings = 32

Field Value

int

Methods

Area(float[], float)

The area inside an outline, m² (the polygon's): π r² for a circle.

public static float Area(float[] outline, float radius)

Parameters

outline float[]
radius float

Returns

float

BearingOf(float, float)

The bearing (radians, 0 … 2π, 0 north, π/2 east) of an offset.

public static float BearingOf(float dx, float dz)

Parameters

dx float
dz float

Returns

float

Beyond(float[], float, float, float)

How far past the footprint's edge an offset lies along its ray from the anchor, metres (negative inside).

public static float Beyond(float[] outline, float radius, float dx, float dz)

Parameters

outline float[]
radius float
dx float
dz float

Returns

float

Contains(float[], float, float, float, float)

Whether an offset (dx, dz) from the anchor lies within the footprint grown by margin metres along its ray.

public static bool Contains(float[] outline, float radius, float dx, float dz, float margin = 0)

Parameters

outline float[]
radius float
dx float
dz float
margin float

Returns

bool

Direction(int, int)

The unit direction (x east, y north) of bearing k of count.

public static Vector2 Direction(int k, int count)

Parameters

k int
count int

Returns

Vector2

Drawn(float[])

True when an outline is drawn (else it is a circle).

public static bool Drawn(float[] outline)

Parameters

outline float[]

Returns

bool

Grown(float[], float)

A copy of an outline grown (or, negative, shrunk) by metres along every bearing; empty stays empty.

public static float[] Grown(float[] outline, float metres)

Parameters

outline float[]
metres float

Returns

float[]

Max(float[], float)

The outline's farthest reach, metres: its bounding radius; radius for a circle.

public static float Max(float[] outline, float radius)

Parameters

outline float[]
radius float

Returns

float

Min(float[], float)

The outline's nearest reach, metres; radius for a circle.

public static float Min(float[] outline, float radius)

Parameters

outline float[]
radius float

Returns

float

Reach(float[], float, float, float)

How far the footprint reaches toward an offset (dx, dz) from its anchor, metres: where the ray that way crosses the outline's edge between its two nearest bearings; radius for a circle.

public static float Reach(float[] outline, float radius, float dx, float dz)

Parameters

outline float[]
radius float
dx float
dz float

Returns

float

ReachAt(float[], float)

How far a drawn outline reaches toward a bearing (radians), metres.

public static float ReachAt(float[] outline, float bearing)

Parameters

outline float[]
bearing float

Returns

float

ReachToward(float[], float, float)

How far the footprint reaches toward a bearing in degrees (as a yaw: 0 north, 90 east), metres.

public static float ReachToward(float[] outline, float radius, float bearingDegrees)

Parameters

outline float[]
radius float
bearingDegrees float

Returns

float