Class: CameraData

Inherits:
Struct
  • Object
show all
Defined in:
lib/belts_opengl/components/camera_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#projection_typeObject

Returns the value of attribute projection_type

Returns:

  • (Object)

    the current value of projection_type



1
2
3
# File 'lib/belts_opengl/components/camera_data.rb', line 1

def projection_type
  @projection_type
end

Instance Method Details

#orthographic?Boolean

Returns:

  • (Boolean)


3
# File 'lib/belts_opengl/components/camera_data.rb', line 3

def orthographic? = projection_type == :orthographic

#perspective?Boolean

Returns:

  • (Boolean)


2
# File 'lib/belts_opengl/components/camera_data.rb', line 2

def perspective? = projection_type == :perspective