Skip to content

@technobuddha > library > Geometry > Line Segment

Type Alias: OnLineOptions

ts
type OnLineOptions = {
  extend?: boolean;
  tolerance?: number;
};

Defined in: is-on-line.ts:10

Options for the isOnLine function

Properties

PropertyTypeDefault valueDescriptionDefined in
extend?booleanfalseIf true, treats the segments as infinite lines; if false, only considers the actual segments.src/is-on-line.ts:20
tolerance?number1e-10Optional tolerance for floating-point comparison.src/is-on-line.ts:15