Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.Features.VolumetricSpace.Volume Struct Reference

Detailed Description

Implements the volumetric space.

Inheritance diagram for Doloro.InvetorySystem.Features.VolumetricSpace.Volume:
Collaboration diagram for Doloro.InvetorySystem.Features.VolumetricSpace.Volume:

Public Member Functions

 Volume (Vector3 size)
 
 Volume (float x, float y, float z)
 
object Clone ()
 Clones the volume data to the new instance. More...
 
override string ToString ()
 
override bool Equals (object obj)
 
bool Equals (Volume other)
 
override int GetHashCode ()
 

Static Public Member Functions

static implicit operator Vector3 (Volume volume)
 
static implicit operator Volume (Vector3 volume)
 
static bool operator== (Volume left, Volume right)
 
static bool operator!= (Volume left, Volume right)
 

Public Attributes

Func< float, float, float, bool > SizePreValidator
 Handler that can defined to pre-moderate the applying values. In case of the false return the value set will be blocked.
 

Package Functions

void ApplyRotation (Coordinate rotation)
 Rotates sides along with axises provided with Coordinate order. More...
 
void ApplyRotation (bool rotateX, bool rotateY, bool rotateZ)
 Rotates sides along with axises. More...
 

Properties

float x [get, set]
 X dimension of the volume. More...
 
float y [get, set]
 Y dimension of the volume. More...
 
float z [get, set]
 Z dimension of the volume. More...
 
float size [get]
 Current cube volume.
 

Events

Action< VolumeResized
 Occurs when any of dimension parameters is modified.
 

Member Function Documentation

◆ ApplyRotation() [1/2]

void Doloro.InvetorySystem.Features.VolumetricSpace.Volume.ApplyRotation ( bool  rotateX,
bool  rotateY,
bool  rotateZ 
)
package

Rotates sides along with axises.

Parameters
rotateXRotate around X axis.
rotateYRotate around Y axis.
rotateZRotate around Z axis.

Rotation goes consistently in order of axis rotations request.

◆ ApplyRotation() [2/2]

void Doloro.InvetorySystem.Features.VolumetricSpace.Volume.ApplyRotation ( Coordinate  rotation)
package

Rotates sides along with axises provided with Coordinate order.

Parameters
rotationCoordinates to apply.

◆ Clone()

object Doloro.InvetorySystem.Features.VolumetricSpace.Volume.Clone ( )

Clones the volume data to the new instance.

Returns
Cloned instance.

Property Documentation

◆ x

float Doloro.InvetorySystem.Features.VolumetricSpace.Volume.x
getset

X dimension of the volume.

Can't be lesser then 0.

◆ y

float Doloro.InvetorySystem.Features.VolumetricSpace.Volume.y
getset

Y dimension of the volume.

Can't be lesser then 0.

◆ z

float Doloro.InvetorySystem.Features.VolumetricSpace.Volume.z
getset

Z dimension of the volume.

Can't be lesser then 0.


The documentation for this struct was generated from the following file: