Skip to contents

A 3D line (thin cylinder) between two points.

Public fields

start_point

Start of line

end_point

End of line

thickness

Line thickness (cylinder radius)

Methods

Inherited methods


Method new()

Create a 3D line

Usage

Line3D$new(
  start = ORIGIN,
  end = c(1, 1, 1),
  thickness = 0.02,
  color = WHITE,
  ...
)

Arguments

start

Start point c(x,y,z)

end

End point c(x,y,z)

thickness

Cylinder thickness

color

Line color

...

Additional args


Method get_length()

Get line length

Usage

Line3D$get_length()


Method get_direction()

Get unit direction vector

Usage

Line3D$get_direction()


Method clone()

The objects of this class are cloneable with this method.

Usage

Line3D$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.