struct

PF2d::Line(T)

Inherits PF2d::Points < Struct < Value < Object

Represents a line between two points Line(Vec2(Int32))

Constructors

new(p1 : T, p2 : T)

Represents a line between two points Line(Vec2(Int32))

Source

Class methods

[](p1 : T, p2 : T)

Represents a line between two points Line(Vec2(Int32))

Source

Instance methods

%(other)

Applies % to all points of this shape

Source
&*(other)

Applies &* to all points of this shape

Source
&+(other)

Applies &+ to all points of this shape

Source
*(other)

Applies * to all points of this shape

Source
**(other)

Applies ** to all points of this shape

Source
+(other)

Applies + to all points of this shape

Source
-(other)

Applies - to all points of this shape

Source
-

Represents a line between two points Line(Vec2(Int32))

Source
/(other)

Applies / to all points of this shape

Source
//(other)

Applies // to all points of this shape

Source
abs

Represents a line between two points Line(Vec2(Int32))

Source
bounding_rect

Represents a line between two points Line(Vec2(Int32))

Source
ceil

Represents a line between two points Line(Vec2(Int32))

Source
centroid

Represents a line between two points Line(Vec2(Int32))

Source
contains_y?(y)
Source
direction
Source
floor

Represents a line between two points Line(Vec2(Int32))

Source
intersect?(other : Line)

Return the point where the two lines intersect unless parallel

Source
inv_slope
Source
length

Return the length of the line

Source
lerp(t : Float64)

Linearly interpolate

Source
max_x

Represents a line between two points Line(Vec2(Int32))

Source
max_y

Represents a line between two points Line(Vec2(Int32))

Source
max_z

Represents a line between two points Line(Vec2(Int32))

Source
min_x

Represents a line between two points Line(Vec2(Int32))

Source
min_y

Represents a line between two points Line(Vec2(Int32))

Source
min_z

Represents a line between two points Line(Vec2(Int32))

Source
normal

Find the normal axis to this line

Source
normal_cc

Normal counter clockwise

Source
p1

Represents a line between two points Line(Vec2(Int32))

p1=(p1 : T)

Represents a line between two points Line(Vec2(Int32))

p2

Represents a line between two points Line(Vec2(Int32))

p2=(p2 : T)

Represents a line between two points Line(Vec2(Int32))

point_pointers

Represents a line between two points Line(Vec2(Int32))

Source
points

Represents a line between two points Line(Vec2(Int32))

Source
rise

The height from the starting point to the ending point

Source
round(precision = 0)

Represents a line between two points Line(Vec2(Int32))

Source
run

The length from the starting point to the ending point

Source
slope
Source
to_vector

Convert this line into a normalized vector

Source
unbounded_intersect?(other : Line)

Return the point where the two lines would intersect unless parallel

Source
x_at(y)
Source
y_at(x)
Source