Skip to main content

Module map

Module map 

Source
Expand description

Map-related data types

Structs§

Direction
A 3-D facing direction — the direction an avatar faces, as carried by the various look_at fields (the viewer’s agent/camera at-axis). It is a direction, not a position: the wire stores three f32s and the viewer uses the full 3-D vector (including any vertical component) as the forward axis. It is conventionally a unit vector, but the wire does not enforce normalisation, so the raw components are preserved verbatim for byte-identical round-trips.
Distance
represents a Second Life distance in meters
GlobalCoordinates
A grid-global position in metres — the viewer’s LLVector3d “global” frame, where the value along an axis is region_grid_index * 256 + region_local. Held as f64 to match the wire’s double-precision global vectors (the directory/event/pick replies carry LLVector3d); the few replies that send a single-precision global position widen to f64 at the codec boundary.
GridCoordinateOffset
an offset between two GridCoordinates
GridCoordinates
Grid coordinates for the position of a region on the map
GridRectangle
represents a rectangle of regions defined by the lower left (minimum coordinates) and upper right (maximum coordinates) corners in GridCoordinates
LandArea
A Second Life land area, in square metres — the unit SL measures parcels and land-tier accounting in (a member’s group land contribution, a parcel’s actual/billable area, an avatar’s land credit/commitment, …).
Location
A location inside Second Life the way it is usually represented in SLURLs or map URLs, based on a Region Name and integer coordinates inside the region
MapTileDescriptor
describes a map tile
RegionCoordinates
Region coordinates for the position of something inside a region
RegionName
The name of a region
Scale
A 3-axis scale factor (X/Y/Z) — a dimensionless multiplier per axis, not a size in metres. Its one wire user is the water normal-map “Reflection Wavelet Scale” (the viewer’s normal_scale: three per-axis multipliers applied to the wavelet normal-map sampling). A scale is not a position or a direction (it has no origin and need not be a unit vector), so it gets its own type.
TeleportFlags
The flags describing how and why a teleport happened, carried by TeleportFinish (and TeleportProgress) as the TeleportFlags U32 bitfield. Mirrors the reference viewer’s TELEPORT_FLAGS_* (indra/llmessage/llteleportflags.h).
USBNotecard
An Universal Sailor Buddy (USB) notecard
USBWaypoint
A waypoint in the Universal Sailor Buddy (USB) notecard format
UnconstrainedLocation
A location inside Second Life the way it is usually represented in SLURLs or map URLs, based on a Region Name and integer coordinates inside the region, this variant allows out of bounds coordinates (negative and 256 or above for x and y and negative for z)
ZoomLevel
The map tile zoom level for the Second Life main map

Enums§

LocationParseError
the possible errors that can occur when parsing a String to a Location
RegionNameError
USBNotecardLoadError
Errors that can happen when an USB notecard is read from a file
ZoomFitError
Errors that can occur when trying to find the correct zoom level to fit regions into an output image of a given size
ZoomLevelError
ZoomLevelParseError

Traits§

GridCoordinatesExt
A trait to allow adding methods to Vec<GridCoordinates>
GridRectangleLike
represents a grid rectangle like type (usually one that contains a grid rectangle or one that contains a corner and is of a known size