Skip to content

Instantly share code, notes, and snippets.

Created Nov 26, 2018
What would you like to do?
public struct Vector3 {
public float x;
public float y;
public float z;
public Vector3() { // 編譯錯誤,結構無法包含明確無參數的建構函式
x = y = z = 0;
public Vector3( float x, float y, float z ) {
this.x = x;
this.y = y;
this.z = z;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment