Vector2

Objective-C

struct Vector2 {}

Swift

struct Vector2

2차원 벡터를 표현하기 위한 구조체

  • x

    x

    Declaration

    Objective-C

    double x

    Swift

    var x: Double
  • y

    y

    Declaration

    Objective-C

    double y

    Swift

    var y: Double