Skip to content

The result will be NaN, if dx1===0 (GetLineToLine.js) #6579

Closed
jonesrussell/nishman
#6
@finscn

Description

@finscn

https://github.com/photonstorm/phaser/blob/c5d53f9e94928746770176ea1db3d29b495b9b05/src/geom/intersects/GetLineToLine.js#L66

if (x3 + dx2 * t - x1)===0 and dx1 === 0, u & s will be NaN.
then the out.x & out.y will be NaN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions