Back to Three Js

StructTypeNode

docs/pages/StructTypeNode.html

latest1011 B
Original Source

Constructor

new StructTypeNode( membersLayout : Object, name : string )

Creates an instance of StructTypeNode.

| membersLayout |

The layout of the members for the struct.

| | name |

The optional name of the struct.

Default is null.

|

Properties

.isStructLayoutNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

.membersLayout : Array.<{name: string, type: string, atomic: boolean}>

The layout of the members for the struct

.name : string

The name of the struct.

Default is null.

Overrides: Node#name

Methods

.getLength() : number

Returns the length of the struct. The length is calculated by summing the lengths of the struct's members.

Returns: The length of the struct.

Source

src/nodes/core/StructTypeNode.js