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
- Alphabetic
- By Inheritance
- Matrix3D
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
def
mult(rhs: Matrix3D): Unit
Multiply this matrix by a second: M = M*R
-
def
scale(xf: Double, yf: Double, zf: Double): Unit
Scale along each axis independently
-
def
scale(f: Double): Unit
Scale by f in all dimensions
-
def
toString(): String
- Definition Classes
- Matrix3D → AnyRef → Any
-
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
-
def
translate(x: Double, y: Double, z: Double): Unit
Translate the origin
-
def
unit(): Unit
Reinitialize to the unit matrix
- def vrot(x: Double, y: Double, z: Double, u: Double, v: Double, w: Double, theta: Double): Unit
-
def
xrot(theta: Double): Unit
rotate theta degrees about the x axis
-
def
yrot(theta: Double): Unit
rotate theta degrees about the y axis
-
def
zrot(theta: Double): Unit
rotate theta degrees about the z axis