s2js
    Preparing search index...

    Class Vector

    Vector represents a point in ℝ³

    Index

    Axis

    X_AXIS: number = 0

    X Axis

    Y_AXIS: number = 1

    Y Axis

    Z_AXIS: number = 2

    Z Axis

    Constructors

    Other

    x: number = 0.0
    y: number = 0.0
    z: number = 0.0
    • Compares v and ov lexicographically and returns:

      -1 if v <  ov
       0 if v == ov
      +1 if v >  ov
      

      This method is based on C++'s std::lexicographical_compare. Two entities are compared element by element with the given operator. The first mismatch defines which is less (or greater) than the other. If both have equivalent values they are lexicographically equal.

      Parameters

      Returns number

    • Returns the Axis that represents the smallest component in this vector.

      Returns number