const virtual class vaseMath::Vector

sys::Obj
  vaseMath::Vector

@Js

Vector is a direction with length

crossProduct

Vector crossProduct(Vector v2)

general product

dotProduct

Float dotProduct(Vector v2)

scalar product

length

Float length()

calculates the magnitude of this vector

make

new make(Float x, Float y, Float z)

make from coordinate

minus

@Operator
Vector minus(Vector v2)

subtract

multFloat

@Operator
Vector multFloat(Float n)

scalar multiplication

normalize

Vector normalize()

returns the unit vector of this vector.

parallelogramArea

Float parallelogramArea(Vector v2)

The parallelogram algebra area

plus

@Operator
Vector plus(Vector v2)

addition

toStr

virtual override Str toStr()

x

const Float x

y

const Float y

z

const Float z