Kaba class Plane ed

...

Syntax ed

class Plane
    var d: f32
    var n: vec3

    # functions
    func pure distance(p: vec3) -> f32
    func pure intersect_line(l1: vec3, l2: vec3, inter: vec3) -> bool
    func pure inverse() -> Plane
    func pure transform(m: mat4) -> Plane
    func static pure from_point_normal(p: vec3, n: vec3) -> Plane
    func static pure from_points(a: vec3, b: vec3, c: vec3) -> Plane

    # operators
    func pure __str__() -> string        # str(Plane) -> string
    func mut __assign__(b: Plane)        # Plane = Plane
    func pure __eq__(b: Plane) -> bool   # Plane == Plane -> bool
    func pure __neq__(b: Plane) -> bool  # Plane __neq__ Plane -> bool

Functions ed

func pure distance(p: vec3) -> f32
...

func pure intersect_line(l1: vec3, l2: vec3, inter: vec3) -> bool
...

func pure inverse() -> Plane
...

func pure transform(m: mat4) -> Plane
...

func static pure from_point_normal(p: vec3, n: vec3) -> Plane
...

func static pure from_points(a: vec3, b: vec3, c: vec3) -> Plane
...

Elements ed

var d: f32
...

var n: vec3
...