Package com.solibri.geometry.primitive2d
Interface MRay2d
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MRay2dcreate(Vector2d origin, Vector2d direction)Returns a ray with the given origin and direction.static MRay2dcreate(Ray2d other)Returns a deep copy of the given ray.voidsetDirection(Vector2d direction)Sets the direction of this ray.voidsetOrigin(Vector2d origin)Sets the origin of this ray.-
Methods inherited from interface com.solibri.geometry.primitive2d.Ray2d
getDirection, getOrigin, intersect, intersects, intersects
-
-
-
-
Method Detail
-
create
static MRay2d create(Ray2d other)
Returns a deep copy of the given ray.- Parameters:
other- the other ray- Returns:
- a deep copy of the given ray
- Since:
- 9.10.2
-
create
static MRay2d create(Vector2d origin, Vector2d direction)
Returns a ray with the given origin and direction.- Parameters:
origin- the origin of the raydirection- the direction of the ray- Returns:
- a ray with the given origin and direction
- Since:
- 9.10.2
-
setOrigin
void setOrigin(Vector2d origin)
Sets the origin of this ray.- Parameters:
origin- the new origin- Since:
- 9.10.2
-
setDirection
void setDirection(Vector2d direction)
Sets the direction of this ray.- Parameters:
direction- the new direction- Since:
- 9.10.2
-
-