Expand description
Map-related data types
Structs§
- Direction
- A 3-D facing direction — the direction an avatar faces, as carried by the
various
look_atfields (the viewer’s agent/camera at-axis). It is a direction, not a position: the wire stores threef32s 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
- Global
Coordinates - A grid-global position in metres — the viewer’s
LLVector3d“global” frame, where the value along an axis isregion_grid_index * 256 + region_local. Held asf64to match the wire’s double-precision global vectors (the directory/event/pick replies carryLLVector3d); the few replies that send a single-precision global position widen tof64at the codec boundary. - Grid
Coordinate Offset - an offset between two
GridCoordinates - Grid
Coordinates - Grid coordinates for the position of a region on the map
- Grid
Rectangle - represents a rectangle of regions defined by the lower left (minimum coordinates)
and upper right (maximum coordinates) corners in
GridCoordinates - Land
Area - 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
- MapTile
Descriptor - describes a map tile
- Region
Coordinates - Region coordinates for the position of something inside a region
- Region
Name - 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. - Teleport
Flags - The flags describing how and why a teleport happened, carried by
TeleportFinish(andTeleportProgress) as theTeleportFlagsU32 bitfield. Mirrors the reference viewer’sTELEPORT_FLAGS_*(indra/llmessage/llteleportflags.h). - USBNotecard
- An Universal Sailor Buddy (USB) notecard
- USBWaypoint
- A waypoint in the Universal Sailor Buddy (USB) notecard format
- Unconstrained
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, this variant allows out of bounds coordinates (negative and 256 or above for x and y and negative for z)
- Zoom
Level - The map tile zoom level for the Second Life main map
Enums§
- Location
Parse Error - the possible errors that can occur when parsing a String to a
Location - Region
Name Error - USBNotecard
Load Error - Errors that can happen when an USB notecard is read from a file
- Zoom
FitError - Errors that can occur when trying to find the correct zoom level to fit regions into an output image of a given size
- Zoom
Level Error - Zoom
Level Parse Error
Traits§
- Grid
Coordinates Ext - A trait to allow adding methods to
Vec<GridCoordinates> - Grid
Rectangle Like - 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