Represents a line between two points
Line(Vec2(Int32))
Constructors
new(p1 : T, p2 : T)
Represents a line between two points
Line(Vec2(Int32))
SourceClass methods
[](p1 : T, p2 : T)
Represents a line between two points
Line(Vec2(Int32))
SourceInstance 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
Sourceabs
Represents a line between two points
Line(Vec2(Int32))
Sourcebounding_rect
Represents a line between two points
Line(Vec2(Int32))
Sourceceil
Represents a line between two points
Line(Vec2(Int32))
Sourcecentroid
Represents a line between two points
Line(Vec2(Int32))
Sourcefloor
Represents a line between two points
Line(Vec2(Int32))
Sourceintersect?(other : Line)
Return the point where the two lines intersect unless parallel
Sourcelength
Return the length of the line
Sourcemax_x
Represents a line between two points
Line(Vec2(Int32))
Sourcemax_y
Represents a line between two points
Line(Vec2(Int32))
Sourcemax_z
Represents a line between two points
Line(Vec2(Int32))
Sourcemin_x
Represents a line between two points
Line(Vec2(Int32))
Sourcemin_y
Represents a line between two points
Line(Vec2(Int32))
Sourcemin_z
Represents a line between two points
Line(Vec2(Int32))
Sourcenormal
Find the normal axis to this line
Sourcep1
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))
Sourcepoints
Represents a line between two points
Line(Vec2(Int32))
Sourcerise
The height from the starting point to the ending point
Sourceround(precision = 0)
Represents a line between two points
Line(Vec2(Int32))
Sourcerun
The length from the starting point to the ending point
Sourceto_vector
Convert this line into a normalized vector
Sourceunbounded_intersect?(other : Line)
Return the point where the two lines would intersect unless parallel
Source