Red4D:
Filter:
redUniverse/Classes (extension) | Red > redUniverse > shapes

Red4D
ExtensionExtension

abstract 4D class

Description

An abstract class for 4D shape classes.

Instance Methods

.points

An array of RedVector4D defining the corners of the shape.

.rotation

Get or set the current rotation of the shape.

Arguments:

redVec

A 6-dimensional RedVector.

.rotationMatrices

An array of 6 arrays each holding a 4-row matrix for the current rotation in X, Y, Z and W dimensions.

.position

Get or set the current position of the shape as a RedVector4D.

.vectors

An array of RedVector4D. This holds the current positions of all points (corners) after rotation is applied. This is calculated when calling -update.

Examples