struct
PF2d::Line(T)
- PF2d::Line(T)
- Struct
- Value
- Object
Overview
Represents a line between two points
Line(Vec(Int32, 2))
Defined in:
pf2d/line.crConstructors
Macro Summary
Instance Method Summary
- #/(n : Float | Int)
- #bottom
- #contains_y?(y)
- #direction
-
#intersect?(other : Line)
Return the point where the two lines intersect unless parallel
-
#intersects?(other : Line(T))
Return the point where the two lines would intersect unless parallel
DEPRECATED Use #intersect?
- #inv_slope
- #left
-
#length
Return the length of the line
-
#lerp(t : Float64)
Linearly interpolate
-
#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
- #rect
- #right
-
#rise
The height from the starting point to the ending point
-
#run
The length from the starting point to the ending point
- #slope
-
#to_vector
Convert this line into a normalized vector
- #top
-
#unbounded_intersect?(other : Line)
Return the point where the two lines would intersect unless parallel
- #x_at(y)
- #y_at(x)
Constructor Detail
Macro 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
DEPRECATED Use #intersect?
Return the point where the two lines would intersect unless parallel