struct CameraPosition

Defined in:

utils/basic_systems.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(offset : Vector2 = Vector2.zero, scale : Vector2 = v2(1, 1), angle : Float32 = 0) #

[View source]

Class Method Detail

def self.component_index #

Instance Method Detail

def angle : Float32 #

def clone #

[View source]
def copy_with(offset _offset = @offset, scale _scale = @scale, angle _angle = @angle) #

[View source]
def move(vector) #

[View source]
def offset : Vector2 #

def rotate(angle) #

[View source]
def scale(k) #

[View source]
def scale : Vector2 #