Search results

ChartTransform3D API in Vue Chart3d API component

Represents a 3D chart transformation utility that provides methods for transforming and projecting 3D coordinates onto a 2D screen.

Methods

result

Calculates the final result matrix based on the current state.

Parameter Type Description
transform Chart3DBasicTransform The 3D transformation.
matrixobj (optional) Matrix3D Optional custom matrix object for transformation.

Returns number[][]

toScreen

Transforms a 3D vector to screen coordinates based on the current state.

Parameter Type Description
vector3D Chart3DVector The 3D vector to transform.
transform Chart3DBasicTransform The 3D transformation.
chartObj (optional) Matrix3D Optional custom matrix object for transformation.

Returns Chart3DLocation

transform

Applies the specified 3D transformation to the current state.

Parameter Type Description
transform Chart3DBasicTransform The 3D transformation to apply.

Returns void

transform3D

Creates a 3D transformation based on the specified size.

Parameter Type Description
size Size The size of the viewing area.

Returns Chart3DBasicTransform