ostk.mathematics.geometry.d3.object.Segment

class Segment(
self: ostk.mathematics.geometry.d3.object.Segment,
first_point: ostk.mathematics.geometry.d3.object.Point,
second_point: ostk.mathematics.geometry.d3.object.Point,
)

Bases: Object

Methods

apply_transformation

as_ellipsoid

as_line

as_line_string

as_plane

as_point

as_point_set

as_polygon

as_pyramid

as_ray

as_segment

as_sphere

contains

distance_to

Overloaded function.

get_center

get_direction

get_first_point

get_length

get_second_point

intersection_with

intersects

Overloaded function.

is_defined

is_degenerate

is_ellipsoid

is_line

is_line_string

is_plane

is_point

is_point_set

is_polygon

is_pyramid

is_ray

is_segment

is_sphere

to_line

undefined

apply_transformation(
self: ostk.mathematics.geometry.d3.object.Segment,
transformation: ostk::mathematics::geometry::d3::Transformation,
) None
as_ellipsoid(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Ellipsoid
as_line(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Line
as_line_string(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::LineString
as_plane(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Plane
as_point(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Point
as_point_set(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::PointSet
as_polygon(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Polygon
as_pyramid(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Pyramid
as_ray(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Ray
as_segment(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Segment
as_sphere(
self: ostk.mathematics.geometry.d3.Object,
) ostk::mathematics::geometry::d3::object::Sphere
contains(
self: ostk.mathematics.geometry.d3.object.Segment,
point: ostk.mathematics.geometry.d3.object.Point,
) bool
distance_to(*args, **kwargs)

Overloaded function.

  1. distance_to(self: ostk.mathematics.geometry.d3.object.Segment, point: ostk.mathematics.geometry.d3.object.Point) -> ostk.core.type.Real

  2. distance_to(self: ostk.mathematics.geometry.d3.object.Segment, point_set: ostk.mathematics.geometry.d3.object.PointSet) -> ostk.core.type.Real

get_center(
self: ostk.mathematics.geometry.d3.object.Segment,
) ostk.mathematics.geometry.d3.object.Point
get_direction(
self: ostk.mathematics.geometry.d3.object.Segment,
) numpy.ndarray[numpy.float64[3, 1]]
get_first_point(
self: ostk.mathematics.geometry.d3.object.Segment,
) ostk.mathematics.geometry.d3.object.Point
get_length(
self: ostk.mathematics.geometry.d3.object.Segment,
) ostk.core.type.Real
get_second_point(
self: ostk.mathematics.geometry.d3.object.Segment,
) ostk.mathematics.geometry.d3.object.Point
intersection_with(
self: ostk.mathematics.geometry.d3.object.Segment,
plane: ostk::mathematics::geometry::d3::object::Plane,
) ostk::mathematics::geometry::d3::Intersection
intersects(*args, **kwargs)

Overloaded function.

  1. intersects(self: ostk.mathematics.geometry.d3.object.Segment, plane: ostk::mathematics::geometry::d3::object::Plane) -> bool

  2. intersects(self: ostk.mathematics.geometry.d3.object.Segment, sphere: ostk::mathematics::geometry::d3::object::Sphere) -> bool

  3. intersects(self: ostk.mathematics.geometry.d3.object.Segment, ellipsoid: ostk::mathematics::geometry::d3::object::Ellipsoid) -> bool

is_defined(self: ostk.mathematics.geometry.d3.object.Segment) bool
is_degenerate(self: ostk.mathematics.geometry.d3.object.Segment) bool
is_ellipsoid(self: ostk.mathematics.geometry.d3.Object) bool
is_line(self: ostk.mathematics.geometry.d3.Object) bool
is_line_string(self: ostk.mathematics.geometry.d3.Object) bool
is_plane(self: ostk.mathematics.geometry.d3.Object) bool
is_point(self: ostk.mathematics.geometry.d3.Object) bool
is_point_set(self: ostk.mathematics.geometry.d3.Object) bool
is_polygon(self: ostk.mathematics.geometry.d3.Object) bool
is_pyramid(self: ostk.mathematics.geometry.d3.Object) bool
is_ray(self: ostk.mathematics.geometry.d3.Object) bool
is_segment(self: ostk.mathematics.geometry.d3.Object) bool
is_sphere(self: ostk.mathematics.geometry.d3.Object) bool
to_line(
self: ostk.mathematics.geometry.d3.object.Segment,
) ostk.mathematics.geometry.d3.object.Line
static undefined() ostk.mathematics.geometry.d3.object.Segment