rotation#

Interfaces#

WedgeCorner#

Defined in: layout/src/rotation.ts:14

A corner of a wedge’s base: dx across from its tip’s abscissa, a length, and y its ordinate.

Properties#

dx#

readonly dx: number

Defined in: layout/src/rotation.ts:15

y#

readonly y: number

Defined in: layout/src/rotation.ts:16


WedgeOffset#

Defined in: layout/src/rotation.ts:55

One corner of a wedge’s base relative to its tip: dx across, a length (scaled as one), and out the distance outwards from the line beyond the tip’s, added to the tip’s distance before it becomes an ordinate.

Properties#

dx#

readonly dx: number

Defined in: layout/src/rotation.ts:56

out#

readonly out: number

Defined in: layout/src/rotation.ts:57

Functions#

sineCosine()#

sineCosine(rotation): readonly [number, number]

Defined in: layout/src/rotation.ts:38

The sine s and cosine k of rotation degrees, each rounded to four decimal places (section 6.6): read from the sines of 0 to 90 degrees by quadrant, the cosine of r being the sine of 90 − |r|. Neither is −0.

Parameters#

rotation#

number

Returns#

readonly [number, number]

Throws#

if rotation is not a whole number from −180 to 180.


wedgeCorners()#

wedgeCorners(rotation): readonly [WedgeOffset, WedgeOffset]

Defined in: layout/src/rotation.ts:67

The corners of the base of a wedge turned rotation degrees about its tip (section 6.6): with s and k its sine and cosine (sineCosine), the first at 13 × s − 3 × k across and 13 × k + 3 × s out, the second at 13 × s + 3 × k across and 13 × k − 3 × s out; at 0 degrees exactly (−3, 13) and (3, 13), the unturned wedge.

Parameters#

rotation#

number

Returns#

readonly [WedgeOffset, WedgeOffset]


wedgeSpan()#

wedgeSpan(rotation): readonly [number, number]

Defined in: layout/src/rotation.ts:80

A wedge’s extent across, relative to its tip (sections 6.4 and 6.7): from the smallest to the largest of 0 and its corners’ dx; [−3, 3] unturned.

Parameters#

rotation#

number

Returns#

readonly [number, number]