φ Famo.us University Famo.us/Angular Docs Help Blog Download
  • core
  • Context
  • ElementAllocator
  • ElementOutput
  • Engine
  • Entity
  • EventEmitter
  • EventHandler
  • Group
  • Modifier
  • OptionsManager
  • RenderNode
  • Scene
  • SpecParser
  • Transform
  • View
  • ViewSequence
  • events
  • EventArbiter
  • EventFilter
  • EventMapper
  • inputs
  • Accumulator
  • GenericSync
  • MouseSync
  • PinchSync
  • RotateSync
  • ScaleSync
  • ScrollSync
  • TouchSync
  • TouchTracker
  • TwoFingerSync
  • math
  • Matrix
  • Quaternion
  • Random
  • Utilities
  • Vector
  • modifiers
  • Draggable
  • Fader
  • ModifierChain
  • StateModifier
  • physics
  • PhysicsEngine
  • physics/bodies
  • Body
  • Circle
  • Particle
  • Rectangle
  • physics/constraints
  • Surface
  • Collision
  • Constraint
  • Curve
  • Distance
  • Snap
  • Wall
  • Walls
  • physics/forces
  • Drag
  • Force
  • Repulsion
  • RotationalDrag
  • RotationalSpring
  • Spring
  • VectorField
  • physics/integrators
  • SymplecticEuler
  • surfaces
  • CanvasSurface
  • ContainerSurface
  • ImageSurface
  • InputSurface
  • TextareaSurface
  • VideoSurface
  • transitions
  • CachedMap
  • Easing
  • MultipleTransition
  • SnapTransition
  • SpringTransition
  • Transitionable
  • TransitionableTransform
  • TweenTransition
  • WallTransition
  • utilities
  • KeyCodes
  • Timer
  • Utility
  • views
  • ContextualView
  • Deck
  • DrawerLayout
  • EdgeSwapper
  • FlexibleLayout
  • Flipper
  • GridLayout
  • HeaderFooterLayout
  • Lightbox
  • RenderController
  • ScrollContainer
  • Scroller
  • Scrollview
  • SequentialLayout
  • widgets
  • NavigationBar
  • TabBar

Matrix

A library for using a 3x3 numerical matrix, represented as a two-level array.

Overview

Options
Methods
get
set
vectorMultiply
multiply
transpose
clone

Matrix(values)

Constructor Parameters

values

Array.Array

array of rows

Methods

get()

Return the values in the matrix as an array of numerical row arrays

Returns
Array.array
matrix values as array of rows.

set(values)

Set the nested array of rows in the matrix.

Parameters
values
Array.array
matrix values as array of rows.

vectorMultiply(v)

Take this matrix as A, input vector V as a column vector, and return matrix product (A)(V). Note: This sets the internal vector register. Current handles to the vector register will see values changed.

Parameters
v
Vector
input vector V
Returns
Vector
result of multiplication, as a handle to the internal vector register

multiply(M2)

Multiply the provided matrix M2 with this matrix. Result is (this) * (M2). Note: This sets the internal matrix register. Current handles to the register will see values changed.

Parameters
M2
Matrix
input matrix to multiply on the right
Returns
Matrix
result of multiplication, as a handle to the internal register

transpose()

Creates a Matrix which is the transpose of this matrix. Note: This sets the internal matrix register. Current handles to the register will see values changed.

Returns
Matrix
result of transpose, as a handle to the internal register

clone()

Clones the matrix

Returns
Matrix
New copy of the original matrix
Branding Terms Privacy Jobs © Famous Industries, Inc. 2015