transport-network-animator / Rotation
• new Rotation(_degrees
)
Name | Type |
---|---|
_degrees |
number |
• get
degrees(): number
number
• get
name(): string
string
• get
radians(): number
number
▸ add(that
): Rotation
Name | Type |
---|---|
that |
Rotation |
▸ delta(that
): Rotation
Name | Type |
---|---|
that |
Rotation |
▸ halfDirection(relativeTo
, splitAxis
): Rotation
Name | Type |
---|---|
relativeTo |
Rotation |
splitAxis |
Rotation |
▸ isVertical(): boolean
boolean
▸ nearestRoundedInDirection(relativeTo
, direction
): Rotation
Name | Type |
---|---|
relativeTo |
Rotation |
direction |
number |
▸ normalize(): Rotation
▸ quarterDirection(relativeTo
): Rotation
Name | Type |
---|---|
relativeTo |
Rotation |
▸ Static
from(direction
): Rotation
Name | Type |
---|---|
direction |
string |