
## ray_intersect(, origin, dir, a, b) {#aspose.threed.utilities.Vector2-aspose.threed.utilities.Vector2-aspose.threed.utilities.Vector2-aspose.threed.utilities.Vector2}

Check if ray (origin, dir) intersects with line segment(start, end)


### Returns 





```python

@staticmethod
def ray_intersect(origin, dir, a, b):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| origin | aspose.threed.utilities.Vector2 |  |
| dir | aspose.threed.utilities.Vector2 |  |
| a | aspose.threed.utilities.Vector2 |  |
| b | aspose.threed.utilities.Vector2 |  |



### See Also
* module [`aspose.threed.utilities`](../../)
* class [`MathUtils`](/3d/python-net/aspose.threed.utilities/mathutils)
