Goishi::Point
Inherits Struct < Value < Object
Constructors
new(x : Float64, y : Float64)
SourceClass methods
angle_between(a : Point, b : Point)
Returns the value of sin sita whose sita is the angle between the vector a and b
cross_prod(a : Point, b : Point)
Sourceintersection(e : Point, f : Point, g : Point, h : Point, segment : Bool = false)
Get intersection point of EF and GH.
If segment is true, EF and GH are treated as line segments.
Instance methods
*(other : Point)
Source*(other : Float64)
Source+(other : Point)
Source+(other : Float64)
Source-(other : Point)
Source-(other : Float64)
Source/(other : Point)
Source/(other : Float64)
Sourceinv
Sourcelength
Sourcemax(a : Float64, b : Float64)
Sourcemin(a : Float64, b : Float64)
Sourceunit_vec
Source