Package | Description |
---|---|
com.solibri.geometry.primitive2d |
Modifier and Type | Interface and Description |
---|---|
interface |
MRay2d
Mutable interface to handle 2-dimensional rays.
|
Modifier and Type | Method and Description |
---|---|
static Ray2d |
Ray2d.create(Ray2d other)
Returns a deep copy of the given ray.
|
static Ray2d |
Ray2d.create(Vector2d origin,
Vector2d direction)
Returns a ray with the given origin and direction.
|
Modifier and Type | Method and Description |
---|---|
static MRay2d |
MRay2d.create(Ray2d other)
Returns a deep copy of the given ray.
|
static Ray2d |
Ray2d.create(Ray2d other)
Returns a deep copy of the given ray.
|
Optional<MVector2d> |
Ray2d.intersect(Ray2d ray)
Returns an optional containing the intersection point between the rays if
present, an empty optional otherwise.
|
boolean |
Ray2d.intersects(Ray2d ray)
Returns true if the rays intersect, false otherwise.
|
Copyright © 2019 Solibri, Inc.. All rights reserved.