heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
70 stars 3 forks source link

Implement more Field operations #6

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago
  1. Vector ops
    • dot
    • cross
    • distance(squared)
    • length(squared)
    • append (like vappend()) EDIT: We already support this using normal vector construction syntax, e.x. { v, 4, v2.xxy }
  2. Logical ops
    • and
    • or
    • not
    • xor
    • nor
    • nand
    • equal
    • not_equal
    • greater(_or_equal)
    • less(_or_equal)

The derivative of logical ops could be considered as 0 everywhere (it's undefined at the points where it changes, but we could freely pick 0 for those points).

The derivative of vector ops will require a bit of algebra, but nothing too hard.

heyx3 commented 1 year ago

Vector operations have been added.