ostk.mathematics.geometry.d2.object.Segment

class Segment(
self: ostk.mathematics.geometry.d2.object.Segment,
start_point: ostk.mathematics.geometry.d2.object.Point,
end_point: ostk.mathematics.geometry.d2.object.Point,
)

Bases: Object

Methods

apply_transformation

contains

distance_to

Overloaded function.

get_center

get_direction

get_first_point

get_length

get_second_point

intersects

is_defined

is_degenerate

to_line

to_string

undefined

class Format(self: ostk.mathematics.geometry.d2.Object.Format, value: int)

Bases: pybind11_object

Members:

Undefined

Standard

WKT

property name
apply_transformation(
self: ostk.mathematics.geometry.d2.object.Segment,
transformation: ostk::mathematics::geometry::d2::Transformation,
) None
contains(
self: ostk.mathematics.geometry.d2.Object,
object: ostk.mathematics.geometry.d2.Object,
) bool
distance_to(*args, **kwargs)

Overloaded function.

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

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

get_center(
self: ostk.mathematics.geometry.d2.object.Segment,
) ostk.mathematics.geometry.d2.object.Point
get_direction(
self: ostk.mathematics.geometry.d2.object.Segment,
) numpy.ndarray[numpy.float64[2, 1]]
get_first_point(
self: ostk.mathematics.geometry.d2.object.Segment,
) ostk.mathematics.geometry.d2.object.Point
get_length(
self: ostk.mathematics.geometry.d2.object.Segment,
) ostk.core.type.Real
get_second_point(
self: ostk.mathematics.geometry.d2.object.Segment,
) ostk.mathematics.geometry.d2.object.Point
intersects(
self: ostk.mathematics.geometry.d2.Object,
object: ostk.mathematics.geometry.d2.Object,
) bool
is_defined(self: ostk.mathematics.geometry.d2.object.Segment) bool
is_degenerate(self: ostk.mathematics.geometry.d2.object.Segment) bool
to_line(
self: ostk.mathematics.geometry.d2.object.Segment,
) ostk.mathematics.geometry.d2.object.Line
to_string(
self: ostk.mathematics.geometry.d2.object.Segment,
format: ostk.mathematics.geometry.d2.Object.Format = <Format.Standard: 1>,
precision: ostk.core.type.Integer = Undefined,
) ostk.core.type.String
static undefined() ostk.mathematics.geometry.d2.object.Segment