Class: DefIntersection

algeobra~DefIntersection()

Definition of the intersection of two objects. Supported types can be found at @see{IntersectionRegistry}

Constructor

new DefIntersection()

Source:

Methods

compute(createInfo) → {Object|Array}

Compute the intersection points
Parameters:
Name Type Description
createInfo CreateInfo The creation info
Source:
Returns:
The intersection points. Some intersectors return a single point and others an array, if multiple intersections can exists. Points are of type TYPE_POINT
Type
Object | Array

(static) fromObjects(obj0, obj1, params) → {CreateInfo}

Compute the intersection points of two objects
Parameters:
Name Type Description
obj0 Number | Object Either the index or value of an object
obj1 Number | Object Either the index or value of an object
params Object
Properties
Name Type Attributes Description
takeIndex Number <optional>
The index of the intersection to use. If < 0, then the returned result will be used. If = 0, either the first entry in an intersection array or the intersection point will be returned, depending on the return type of the intersector If > 0, the indicated index in an array of intersections If any requested intersection does not exist (for example requesting the second point, when only one exists) will result in INVALID
Source:
Returns:
The creation info
Type
CreateInfo