struct Goishi::Point
- Goishi::Point
- Struct
- Value
- Object
Defined in:
goishi/data_types/point.crConstructors
Class Method Summary
-
.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)
-
.intersection(e : Point, f : Point, g : Point, h : Point, segment : Bool = false)
Get intersection point of EF and GH.
Instance Method Summary
- #*(other : Point)
- #*(other : Float64)
- #+(other : Point)
- #+(other : Float64)
- #-(other : Point)
- #-(other : Float64)
- #/(other : Point)
- #/(other : Float64)
- #inv
- #length : Float64
- #max(a : Float64, b : Float64)
- #min(a : Float64, b : Float64)
- #unit_vec
- #x : Float64
- #y : Float64
Constructor Detail
Class Method Detail
Returns the value of sin sita whose sita is the angle between the vector a and b
Get intersection point of EF and GH.
If segment
is true, EF and GH are treated as line segments.