Namespace: transform

calcs.transform

Methods

bisect3d(opts, geom)

Cuts a given geometry in half.
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
axis string Axis direction pointing to the remaining geometry. This could be negative, specified like "x" or "-y"
geom Object Object we're cutting
Source:
Returns:
bisected geometry

cutCircularSlice(opts, geom)

Cuts a slice of an object
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
centralAngle number
geom Object Object we're cutting
Source:
Returns:
bisected geometry

(static) cloneQuadrant(inShape)

Clones one quadrant of the given 2D shape into all quadrants.
Parameters:
Name Type Description
inShape object geom2 object
Source:
Returns:
2D geometry with cloned quadrants

(static) cutQuadrant(inShape)

Cuts one quadrant of the given 2D shape
Parameters:
Name Type Description
inShape object geom2 object
Source:
Returns:
2D geometry of one quadrant from the given shape

(static) stack(opts, geoms) → {Array.<object>}

Stacks geometries on top of each other, starting from the bottom
Parameters:
Name Type Description
opts object
Properties
Name Type Attributes Description
reverse boolean <nullable>
if true, first element will be at the top, not bottom (defaults to 'false')
geoms Array.<object> array of geom3 objects
Source:
Returns:
array of stacked geom3 objects
Type
Array.<object>