Packages

c

org.nlogo.api

Matrix3D

class Matrix3D extends AnyRef

A fairly conventional 3D matrix object that can transform sets of 3D points and perform a variety of manipulations on the transform

Source
Matrix3D.java
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Matrix3D
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Matrix3D(xs: Array[Double], ys: Array[Double], zs: Array[Double])

    Create a new matrix with transform specified in row-major order

  2. new Matrix3D()

Value Members

  1. def mult(rhs: Matrix3D): Unit

    Multiply this matrix by a second: M = M*R

  2. def scale(xf: Double, yf: Double, zf: Double): Unit

    Scale along each axis independently

  3. def scale(f: Double): Unit

    Scale by f in all dimensions

  4. def toString(): String
    Definition Classes
    Matrix3D → AnyRef → Any
  5. def transform(v: Array[Double], tv: Array[Double], nvert: Int): Unit

    Transform nvert points from v into tv.

    Transform nvert points from v into tv. v contains the input coordinates in doubleing point. Three successive entries in the array constitute a point. tv ends up holding the transformed points as integers; three successive entries per point

  6. def translate(x: Double, y: Double, z: Double): Unit

    Translate the origin

  7. def unit(): Unit

    Reinitialize to the unit matrix

  8. def vrot(x: Double, y: Double, z: Double, u: Double, v: Double, w: Double, theta: Double): Unit
  9. def xrot(theta: Double): Unit

    rotate theta degrees about the x axis

  10. def yrot(theta: Double): Unit

    rotate theta degrees about the y axis

  11. def zrot(theta: Double): Unit

    rotate theta degrees about the z axis