Module

# Graphics.Isometric.Point

Package
purescript-isometric
Repository
sharkdp/purescript-isometric

### #pointSource

``point :: Number -> Number -> Number -> Point``

Construct a point from x, y, and z coordinates.

### #originSource

``origin :: Point``

The origin of the 3D coordinate system.

### #from2DSource

``from2D :: Point -> Point``

Construct a 3D point in the xy plane from a 2D point.

### #vectorSource

``vector :: Point -> Point -> Vector``

Construct a vector as a difference between two points.

### #translateSource

``translate :: Point -> Vector -> Point``

Translate a given point by a vector.

### #dotSource

``dot :: Vector -> Vector -> Number``

The dot-product of two vectors.

### #normSource

``norm :: Vector -> Number``

The Euclidean norm of a vector.

### #normalizeSource

``normalize :: Vector -> Vector``

Normalize a vector to length 1.

### #crossSource

``cross :: Vector -> Vector -> Vector``

The cross-product of two vectors.

### #translateXSource

``translateX :: Number -> Point -> Point``

Translate a point by a given offset in x-direction.

### #translateYSource

``translateY :: Number -> Point -> Point``

Translate a point by a given offset in y-direction.

### #translateZSource

``translateZ :: Number -> Point -> Point``

Translate a point by a given offset in z-direction.

### #rotateXSource

``rotateX :: Angle -> Point -> Point``

Rotate a point around the x-axis.

### #rotateYSource

``rotateY :: Angle -> Point -> Point``

Rotate a point around the y-axis.

### #rotateZSource

``rotateZ :: Angle -> Point -> Point``

Rotate a point around the z-axis.

### #scaleSource

``scale :: Number -> Point -> Point``

Scale a point by a multiplicative factor (with respect to the origin).

### #depthSource

``depth :: Point -> Number``

Calculate the 'depth' of a point, measured from the point of the observer.