struct
PF2d::Line(T)
- PF2d::Line(T)
- PF2d::Points(2)
- Struct
- Value
- Object
Overview
Represents a line between two points
Line(Vec2(Int32))
Defined in:
pf2d/line.crConstructors
Class Method Summary
Instance Method Summary
-
#%(other)
Applies
%to all points of this shape -
#&*(other)
Applies
&*to all points of this shape -
#&+(other)
Applies
&+to all points of this shape -
#*(other)
Applies
#*to all points of this shape -
#**(other)
Applies
#**to all points of this shape -
#+(other)
Applies
#+to all points of this shape -
#-(other)
Applies
#-to all points of this shape - #-
-
#/(other)
Applies
#/to all points of this shape -
#//(other)
Applies
#//to all points of this shape - #abs
- #bounding_rect
- #ceil
- #centroid
- #contains_y?(y)
- #direction
- #floor
-
#intersect?(other : Line)
Return the point where the two lines intersect unless parallel
- #inv_slope
-
#length
Return the length of the line
-
#lerp(t : Float64)
Linearly interpolate
- #max_x
- #max_y
- #max_z
- #min_x
- #min_y
- #min_z
-
#normal
Find the normal axis to this line
-
#normal_cc
Normal counter clockwise
- #p1 : T
- #p1=(p1 : T)
- #p2 : T
- #p2=(p2 : T)
- #point_pointers
- #points
-
#rise
The height from the starting point to the ending point
- #round(precision = 0)
-
#run
The length from the starting point to the ending point
- #slope
-
#to_vector
Convert this line into a normalized vector
-
#unbounded_intersect?(other : Line)
Return the point where the two lines would intersect unless parallel
- #x_at(y)
- #y_at(x)
Instance methods inherited from struct PF2d::Points(2)
initialize
initialize
Constructor methods inherited from struct PF2d::Points(2)
new
new
Constructor Detail
Class Method Detail
Instance Method Detail
Return the point where the two lines intersect unless parallel
Return the point where the two lines would intersect unless parallel