ShapeUv class final

How a shape lays its texture out.

natural: each face of a box or a plane once, round surfaces wrapped once around and once along; the blocking shapes (ramp, stairs, arch, polygon) once per metre of their own size.

metres: once per metre of the world on every surface — the shape's size times the scale it is drawn at — so a grid texture keeps its scale on shapes of any size.

Constructors

ShapeUv.metresAt(double sx, double sy, double sz)
Coordinates in metres of the world, for a shape drawn scaled by (sx, sy, sz).
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Object
Equal for equal layouts (a cache key).
no setter
metres → bool
Whether coordinates are in metres of the world.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sx → double
The scale the shape is drawn at (absolute), for metres.
final
sy → double
The scale the shape is drawn at (absolute), for metres.
final
sz → double
The scale the shape is drawn at (absolute), for metres.
final

Methods

alongY(double length) → double
Length length along Y, in the world.
anyway(double length) → double
A length that bends every way (round a torus's tube), in the world.
around(double radius) → double
Length along a ring of radius about Y, in the world.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

natural → const ShapeUv
Natural texture coordinates.