gets a matrix with: x column: the vector from the left of the near plane to the right of the near plane in world coords y column: the vector from the bottom of the near plane to the top of the near plane in world coords z column: the vector from the near to the far plane in world coords w column: the location of the middle of the near plane
Sets a callback function to be called whenever the state specified in state_key changes. The return value callbackSwitch is a callback switch. You can activate the listener with callbackSwitch.activate() and deactive with callbackSwitch.deactivate(). Example Usage:
var callbackswitch = model.addStateKeyListener('name',()=>{
n_name_changes = n_name_changes+1;
})
the name of the state to listen to
the callback to be executed when state changes
the handle / unique identifier for
whether callbacks should happen synchronously or allow for batching
update projection when lrtb, zoom, or near/far have changed
Generated using TypeDoc
gets a matrix with: x column: the vector from the left of the far plane to the right of the far plane in world coords y column: the vector from the bottom of the far plane to the top of the far plane in world coords z column: the vector from the near to the far plane in world coords w column: the location of the middle of the far plane