Modifier and Type | Method and Description |
---|---|
static MRay2d |
create(Ray2d other)
Returns a deep copy of the given ray.
|
static MRay2d |
create(Vector2d origin,
Vector2d direction)
Returns a ray with the given origin and direction.
|
void |
setDirection(Vector2d direction)
Sets the direction of this ray.
|
void |
setOrigin(Vector2d origin)
Sets the origin of this ray.
|
getDirection, getOrigin, intersect, intersects, intersects
static MRay2d create(Vector2d origin, Vector2d direction)
void setOrigin(Vector2d origin)
origin
- the new originvoid setDirection(Vector2d direction)
direction
- the new directionCopyright © 2019 Solibri, Inc.. All rights reserved.