struct CrystalEdge::Vector2

Overview

Representation of 2D vector

Included Modules

Defined in:

lib/crystaledge/src/crystaledge/vector2.cr
nya/crystaledge_ext.cr

Constant Summary

NYA_REGISTERED = true
PROPERTIES = {"x" => "Float64", "y" => "Float64"} of String => String

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.deserialize(xml, ctx : SerializationContext | Nil = nil) #

[View source]
def self.transform_name(name) #

def self.xml_name #

Returns XML compatible name of a type (see Nya::Serializable.translate_type)


Instance Method Detail

def to_gl #

[View source]