Namespace: triangle

calcs.geometry.triangle

Geometric calculations for triangles.
Source:

Methods

(static) rightTriangleOpts(opts) → {Object|null}

Sets up triangle creation from the given parameters. If valid, returns triangle creation strategy (AAS, ASA, SAS, etc) and values for `jscad.primitives.triangle()`. If invalid, returns `null`.
Parameters:
Name Type Description
opts object
Properties
Name Type Description
hypot number hypotenuse
long number long side
short number short side
longAngle number long angle
shortAngle number short angle
Source:
Returns:
- data for triangle creation
Type
Object | null