Reference · Rockets, variants, parts and the fit check
FlatPlacetype
Text on a flat wall: at is the anchor, the middle of the capitals' height; right is the way the text reads and up the way a letter stands, both unit vectors; the viewer who sees the text right way round
stands on the side of right x up.
Import it
import type { FlatPlace } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface FlatPlace extends PlaceBase {
at: Vec3;
right: Vec3;
up: Vec3;
}
Members
| Name | Type | Description |
|---|---|---|
at | Vec3 | |
right | Vec3 | |
up | Vec3 | |
height | number | The height of a capital letter, in metres. |
align (optional) | "start" | "middle" | "end" | undefined | Which end of the text is on the anchor: |
Examples
import type { FlatPlace } from "@johnmorrisdotca/uchusen-rockets";
const wall: FlatPlace = { at: [6.4, 20, 0], right: [0, 0, -1], up: [0, 1, 0], height: 0.9, align: "middle" };
console.log(wall.height);0.9What it prints (run when this page was built)